diff options
author | Kim Alvefur <zash@zash.se> | 2018-08-16 14:32:21 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-08-16 14:32:21 +0200 |
commit | d4dd6144b08a3304ab95dc8df64434dcb31a13e9 (patch) | |
tree | ae0edbc4facdcd6150d87ce35800e68ded54b145 /util | |
parent | 3081a87880dfc7299f9e18de69403e2dff9e83cb (diff) | |
download | prosody-d4dd6144b08a3304ab95dc8df64434dcb31a13e9.tar.gz prosody-d4dd6144b08a3304ab95dc8df64434dcb31a13e9.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.lua | 2 |
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 |