mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-03 18:02:28 +01:00
Merge pull request #789 from gardenia/mod_shared_roster_remove_resource_in_push_from
Don't send full JID in 'from' of Roster Push (RFC 6121 section 2.1.6)
This commit is contained in:
commit
81a7ca7b1e
@ -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