# HG changeset patch # User Kim Alvefur # Date 1612969457 -3600 # Node ID a620bf249e63bc6b6f54a198854896e157ab5176 # Parent f10ab82be166a7e5d4f9bd37f0e89594c054c536 mod_pubsub_summary: Explain why it picks content or summary in a comment diff -r f10ab82be166 -r a620bf249e63 mod_pubsub_summary/mod_pubsub_summary.lua --- a/mod_pubsub_summary/mod_pubsub_summary.lua Wed Feb 10 16:02:28 2021 +0100 +++ b/mod_pubsub_summary/mod_pubsub_summary.lua Wed Feb 10 16:04:17 2021 +0100 @@ -4,6 +4,8 @@ module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event) local payload = event.payload; local title = payload:get_child_text("title"); + -- Note: This prefers content over summary, it was made for a news feed where + -- the interesting stuff was in the content and the summary was .. meh. local content_tag = payload:get_child("content") or payload:get_child("summary"); local content = content_tag:get_text(); if content_tag.attr.type == "html" then