aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep_plus.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-04-11 15:52:13 +0200
committerKim Alvefur <zash@zash.se>2018-04-11 15:52:13 +0200
commitcab3f5abe5abcdcb10173c0dbc3a471eefb83cf5 (patch)
tree09d3959a7739fb81bc4e6cfbd9994eec625ec344 /plugins/mod_pep_plus.lua
parent1325ac697f8bdc1c0255554aea74f902e29cb13a (diff)
downloadprosody-cab3f5abe5abcdcb10173c0dbc3a471eefb83cf5.tar.gz
prosody-cab3f5abe5abcdcb10173c0dbc3a471eefb83cf5.zip
mod_pep_plus: Skip getting PEP service instance for sessions that have not touched PEP
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r--plugins/mod_pep_plus.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua
index 083b96b1..fdc8cdbf 100644
--- a/plugins/mod_pep_plus.lua
+++ b/plugins/mod_pep_plus.lua
@@ -268,7 +268,6 @@ local function resend_last_item(jid, node, service)
end
local function update_subscriptions(recipient, service_name, nodes)
- local service = get_pep_service(service_name);
nodes = nodes or empty_set;
local service_recipients = recipients[service_name];
@@ -286,6 +285,7 @@ local function update_subscriptions(recipient, service_name, nodes)
return;
end
+ local service = get_pep_service(service_name);
for node in current - nodes do
service:remove_subscription(node, recipient, recipient);
end