25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Fix notification payload generated by pubsub

This commit is contained in:
Paweł Chmielowski 2018-04-12 18:02:32 +02:00
parent c3b4b4ce4f
commit fe4b1a492c

View 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,