mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix wrong virtual host in mod_pubsub:send_stanza (#2930)
This commit is contained in:
parent
4be98b5aef
commit
c0dc95d529
@ -603,7 +603,11 @@ on_user_offline(C2SState, _Reason) ->
|
||||
|
||||
-spec out_subscription(presence()) -> any().
|
||||
out_subscription(#presence{type = subscribed, from = From, to = To}) ->
|
||||
send_last_pep(jid:remove_resource(From), To);
|
||||
if From#jid.lserver == To#jid.lserver ->
|
||||
send_last_pep(jid:remove_resource(From), To);
|
||||
true ->
|
||||
ok
|
||||
end;
|
||||
out_subscription(_) ->
|
||||
ok.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user