]> granicus.if.org Git - ejabberd/commitdiff
Fix notification payload generated by pubsub
authorPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 16:02:32 +0000 (18:02 +0200)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Thu, 12 Apr 2018 16:02:32 +0000 (18:02 +0200)
src/mod_pubsub.erl

index c9ddc329c735a2b510bce99d5ceffca9e681e534..5d02d6518db748818e994dd4dc26e5718570b57a 100644 (file)
@@ -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,