aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-14 21:26:59 +0200
committerKim Alvefur <zash@zash.se>2018-07-14 21:26:59 +0200
commit0f1bc72843d1e6a464d9204d440ab06ca16eb840 (patch)
treee2a99d003e69b92b57a39fa96b48695a7aa951c4 /plugins/mod_pubsub/mod_pubsub.lua
parent9003eb54335fafa6fe69cd5c3c59bfc2a93b2de3 (diff)
downloadprosody-0f1bc72843d1e6a464d9204d440ab06ca16eb840.tar.gz
prosody-0f1bc72843d1e6a464d9204d440ab06ca16eb840.zip
mod_pubsub: Skip checks for adding body if no body generated
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 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;