diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-08-09 11:34:36 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-08-09 11:34:36 +0200 |
commit | e903348dd320e1c4cabaa26414f8fbb45f189a45 (patch) | |
tree | 4a6b63fa0bf3e72dcc7ebe758df8a909d33d48aa | |
parent | Merge pull request #1912 from mathiasertl/master (diff) |
Fix pubsub send_loop after 3fec7824
-rw-r--r-- | src/mod_pubsub.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 0ae68b24b..194d12444 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -427,8 +427,8 @@ get_subscribed(User, Server) -> send_loop(State) -> receive {presence, JID, _Pid} -> - Host = State#state.server_host, ServerHost = State#state.server_host, + Host = host(State#state.server_host), DBType = State#state.db_type, LJID = jid:tolower(JID), BJID = jid:remove_resource(LJID), @@ -469,7 +469,7 @@ send_loop(State) -> send_loop(State); {presence, User, Server, Resources, JID} -> spawn(fun() -> - Host = State#state.server_host, + Host = host(State#state.server_host), Owner = jid:remove_resource(jid:tolower(JID)), lists:foreach(fun(#pubsub_node{nodeid = {_, Node}, type = Type, id = Nidx, options = Options}) -> case match_option(Options, send_last_published_item, on_sub_and_presence) of |