Software /
code /
prosody
Diff
plugins/mod_pubsub/mod_pubsub.lua @ 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 |
parent | 9188:ef2616ade453 |
child | 9597:17d43543f9b6 |
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