Software /
code /
prosody
Changeset
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 |
parents | 10069:6f317e51544d |
children | 10071:b36e2631203d |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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");