From d931d6bfb3ab8d5102de8f7983ff26dd6caec980 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 14 Jul 2018 21:26:59 +0200 Subject: mod_pubsub: Skip checks for adding body if no body generated --- 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 e9c7ad37..4aa3af89 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -70,7 +70,7 @@ function simple_broadcast(kind, node, jids, item, actor, node_obj) for jid, options in pairs(jids) do local new_stanza = st.clone(message); - if type(options) == "table" and options["pubsub#include_body"] then + if summary and type(options) == "table" and options["pubsub#include_body"] then new_stanza:body(summary); end new_stanza.attr.to = jid; -- cgit v1.2.3