From d4dd6144b08a3304ab95dc8df64434dcb31a13e9 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 16 Aug 2018 14:32:21 +0200 Subject: util.pubsub: Pass "retract" as the type of such broadcasts This moves some XEP-0060 awkwardness out of util.pubsub and into mod_pubsub A retraction is broadcast in an container, whereas most other kinds of broadcasts are in a container with a name matching the 'kind' attribute. --- util/pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/pubsub.lua') diff --git a/util/pubsub.lua b/util/pubsub.lua index 88622ea0..be3f0e7c 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -523,7 +523,7 @@ function service:retract(node, actor, id, retract) end self.events.fire_event("item-retracted", { node = node, actor = actor, id = id }); if retract then - self.config.broadcaster("items", node, node_obj.subscribers, retract, actor, node_obj, self); + self.config.broadcaster("retract", node, node_obj.subscribers, retract, actor, node_obj, self); end return true end -- cgit v1.2.3