From: Paweł Chmielowski Date: Thu, 12 Apr 2018 16:02:32 +0000 (+0200) Subject: Fix notification payload generated by pubsub X-Git-Tag: 18.04~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fe4b1a492c88b5e8ba72c905cbb789b925197666;p=ejabberd Fix notification payload generated by pubsub --- diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index c9ddc329c..5d02d6518 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -2656,11 +2656,11 @@ broadcast_publish_item(Host, Node, Nidx, Type, NodeOptions, ItemId, From, Payloa SubsByDepth when is_list(SubsByDepth) -> ItemPublisher = case get_option(NodeOptions, itemreply) of publisher -> jid:encode(From); - _ -> undefined + _ -> <<>> end, ItemPayload = case get_option(NodeOptions, deliver_payloads) of true -> Payload; - false -> undefined + false -> [] end, ItemsEls = #ps_items{node = Node, items = [#ps_item{id = ItemId,