mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
backport trunk commit r2530
SVN Revision: 2538
This commit is contained in:
parent
4d5bfe2ee8
commit
f7c5a4a15b
@ -3701,8 +3701,9 @@ itemsEls(Items) ->
|
||||
#xmlel{ns = ?NS_PUBSUB, name = 'item', attrs = itemAttr(ItemId), children = Payload}
|
||||
end, Items).
|
||||
|
||||
add_headers(#xmlel{} = El, Headers) ->
|
||||
exmpp_xml:append_children(El, Headers).
|
||||
add_headers(#xmlel{} = El, HeaderEls) ->
|
||||
HeaderEl = #xmlel{ns = ?NS_SHIM, name = 'headers', children = HeaderEls},
|
||||
exmpp_xml:prepend_child(El, HeaderEl).
|
||||
|
||||
collection_shim(Node, Nodes) ->
|
||||
[#xmlel{ns = ?NS_PUBSUB, name ='header',
|
||||
|
Loading…
Reference in New Issue
Block a user