mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't perform roster push for non-local contacts in mod_shared_roster
If group have member with jid from external server we tried to make mod_roster sent roster push to it, and it sometimes didn't like to get bogus data like that, so let's check if it's local user before doing this.
This commit is contained in:
parent
abdbc5df13
commit
b30775a357
@ -662,8 +662,13 @@ push_user_to_group(LUser, LServer, Group, Host,
|
|||||||
when (U == LUser) and (S == LServer) ->
|
when (U == LUser) and (S == LServer) ->
|
||||||
ok;
|
ok;
|
||||||
({U, S}) ->
|
({U, S}) ->
|
||||||
|
case lists:member(S, ejabberd_config:get_myhosts()) of
|
||||||
|
true ->
|
||||||
push_roster_item(U, S, LUser, LServer, GroupName,
|
push_roster_item(U, S, LUser, LServer, GroupName,
|
||||||
Subscription)
|
Subscription);
|
||||||
|
_ ->
|
||||||
|
ok
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
get_group_users(Host, Group)).
|
get_group_users(Host, Group)).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user