mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Don't send full JID in 'from' of Roster Push (RFC 6121 section 2.1.6). This is a patch by @badlop in the comments of github issue #367
This commit is contained in:
parent
c62bd0c911
commit
92b9fb30e0
@ -1025,7 +1025,7 @@ push_item(User, Server, Item) ->
|
|||||||
children = [item_to_xml(Item)]}]}),
|
children = [item_to_xml(Item)]}]}),
|
||||||
lists:foreach(fun (Resource) ->
|
lists:foreach(fun (Resource) ->
|
||||||
JID = jlib:make_jid(User, Server, Resource),
|
JID = jlib:make_jid(User, Server, Resource),
|
||||||
ejabberd_router:route(JID, JID, Stanza)
|
ejabberd_router:route(jlib:jid_remove_resource(JID), JID, Stanza)
|
||||||
end,
|
end,
|
||||||
ejabberd_sm:get_user_resources(User, Server)).
|
ejabberd_sm:get_user_resources(User, Server)).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user