aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/pubsub.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/util/pubsub.lua b/util/pubsub.lua
index 34859fdb..22a29c18 100644
--- a/util/pubsub.lua
+++ b/util/pubsub.lua
@@ -21,6 +21,13 @@ function service:remove_subscription(node, actor, jid)
return true;
end
+function service:get_subscription(node, actor, jid)
+ local node_obj = self.nodes[node];
+ if node_obj then
+ return node_obj.subscribers[jid];
+ end
+end
+
function service:publish(node, actor, id, item)
local node_obj = self.nodes[node];
if not node_obj then