aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-07-10 19:12:19 +0200
committerKim Alvefur <zash@zash.se>2019-07-10 19:12:19 +0200
commit7860ab4b12a1cc13cdb5fc736cfa08f800f87890 (patch)
tree4cd1de113cf3db28dd99081682da9a50f99ddc88 /plugins/mod_pubsub
parent078178a3bac5c0ed69d629119d1c84bac3eda480 (diff)
downloadprosody-7860ab4b12a1cc13cdb5fc736cfa08f800f87890.tar.gz
prosody-7860ab4b12a1cc13cdb5fc736cfa08f800f87890.zip
mod_pubsub: Move a comment to where it makes sense
This code has moved but the comment did not follow it.
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index 05f80365..faf08cb2 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -82,7 +82,6 @@ function simple_broadcast(kind, node, jids, item, actor, node_obj)
end
local summary;
- -- Compose a sensible textual representation of at least Atom payloads
if item and item.tags[1] then
local payload = item.tags[1];
summary = module:fire_event("pubsub-summary/"..payload.attr.xmlns, {
@@ -116,6 +115,7 @@ function is_item_stanza(item)
return st.is_stanza(item) and item.attr.xmlns == xmlns_pubsub and item.name == "item";
end
+-- Compose a textual representation of Atom payloads
module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event)
local payload = event.payload;
local title = payload:get_child_text("title");