aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-31 21:57:04 +0200
committerKim Alvefur <zash@zash.se>2018-08-31 21:57:04 +0200
commit43845f0757f376af8e3bd7e414105222668d66e5 (patch)
tree6e90856f31858c5ab3049e2adc1de90caaa9a448 /plugins/mod_pubsub/mod_pubsub.lua
parent59b9a3eb3ff1360980c0a3e14d0c8c78ac11c9b7 (diff)
downloadprosody-43845f0757f376af8e3bd7e414105222668d66e5.tar.gz
prosody-43845f0757f376af8e3bd7e414105222668d66e5.zip
mod_pubsub: Fix summary generation for Atom entries to use the correct field
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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