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.
when (U == LUser) and (S == LServer) ->
ok;
({U, S}) ->
- push_roster_item(U, S, LUser, LServer, GroupName,
- Subscription)
+ case lists:member(S, ejabberd_config:get_myhosts()) of
+ true ->
+ push_roster_item(U, S, LUser, LServer, GroupName,
+ Subscription);
+ _ ->
+ ok
+ end
end,
get_group_users(Host, Group)).