From 6b22fae6036298bf69b5f4d6573768e049e7a791 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 31 Aug 2018 21:57:04 +0200 Subject: mod_pubsub: Fix summary generation for Atom entries to use the correct field --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_pubsub') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 4e9cecb4..05d2d663 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -114,7 +114,7 @@ function is_item_stanza(item) 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 -- cgit v1.2.3