# HG changeset patch # User Kim Alvefur # Date 1562778739 -7200 # Node ID d7cae71879432b248370dac4fabb57b82026d750 # Parent 6f317e51544da771b7a72a0976907fc086ff282d mod_pubsub: Move a comment to where it makes sense This code has moved but the comment did not follow it. diff -r 6f317e51544d -r d7cae7187943 plugins/mod_pubsub/mod_pubsub.lua --- 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");