diff options
author | Kim Alvefur <zash@zash.se> | 2019-07-10 19:12:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-07-10 19:12:19 +0200 |
commit | bf89be01bb4e16a11c72a7e1f6e8939b76aed47a (patch) | |
tree | 4cd1de113cf3db28dd99081682da9a50f99ddc88 /plugins | |
parent | dae2e97303535d5f3c42e763a1a809ef340c2eb0 (diff) | |
download | prosody-bf89be01bb4e16a11c72a7e1f6e8939b76aed47a.tar.gz prosody-bf89be01bb4e16a11c72a7e1f6e8939b76aed47a.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')
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 2 |
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"); |