aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-16 14:32:21 +0200
committerKim Alvefur <zash@zash.se>2018-08-16 14:32:21 +0200
commit98c9778cc77d1d81300742e34c81c20a44accef1 (patch)
treeae0edbc4facdcd6150d87ce35800e68ded54b145 /util
parent16f48337f31a4edfade237a5f6efe08e6a2ec887 (diff)
downloadprosody-98c9778cc77d1d81300742e34c81c20a44accef1.tar.gz
prosody-98c9778cc77d1d81300742e34c81c20a44accef1.zip
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 <items> container, whereas most other kinds of broadcasts are in a container with a name matching the 'kind' attribute.
Diffstat (limited to 'util')
-rw-r--r--util/pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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