Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 10070:d7cae7187943
mod_pubsub: Move a comment to where it makes sense
This code has moved but the comment did not follow it.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 10 Jul 2019 19:12:19 +0200 |
parent | 9829:fdc42f685557 |
child | 10673:1a23a58ac84e |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Wed Jul 10 17:04:36 2019 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Wed Jul 10 19:12:19 2019 +0200 @@ -82,7 +82,6 @@ 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 @@ 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");