Changeset

9234:d00e8ec7ece2

mod_pubsub: Fix summary generation for Atom entries to use the correct field
author Kim Alvefur <zash@zash.se>
date Fri, 31 Aug 2018 21:57:04 +0200
parents 9233:885dd6845e62
children 9235:7fbcabee6df1
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	Fri Aug 31 17:49:14 2018 +0200
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Fri Aug 31 21:57:04 2018 +0200
@@ -114,7 +114,7 @@
 end
 
 module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event)
-	local payload = event.item;
+	local payload = event.payload;
 	local title = payload:get_child_text("title");
 	local summary = payload:get_child_text("summary");
 	if not summary and title then