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:
parent
c3b4b4ce4f
commit
fe4b1a492c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user