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) ->
|
SubsByDepth when is_list(SubsByDepth) ->
|
||||||
ItemPublisher = case get_option(NodeOptions, itemreply) of
|
ItemPublisher = case get_option(NodeOptions, itemreply) of
|
||||||
publisher -> jid:encode(From);
|
publisher -> jid:encode(From);
|
||||||
_ -> undefined
|
_ -> <<>>
|
||||||
end,
|
end,
|
||||||
ItemPayload = case get_option(NodeOptions, deliver_payloads) of
|
ItemPayload = case get_option(NodeOptions, deliver_payloads) of
|
||||||
true -> Payload;
|
true -> Payload;
|
||||||
false -> undefined
|
false -> []
|
||||||
end,
|
end,
|
||||||
ItemsEls = #ps_items{node = Node,
|
ItemsEls = #ps_items{node = Node,
|
||||||
items = [#ps_item{id = ItemId,
|
items = [#ps_item{id = ItemId,
|
||||||
|
Loading…
Reference in New Issue
Block a user