summaryrefslogtreecommitdiff
path: root/src/mod_pubsub.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-01-25 20:02:47 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2018-01-25 20:02:47 +0300
commit2269d290d80672e4e71e380d693404280c7050d2 (patch)
tree1d16d3fbaed71dfdce49912865c4079553bf62ac /src/mod_pubsub.erl
parentHandle ignore from xmpp_socket callback start (diff)
Switch to newer fast_xml and xmpp and update record fields in the code
Diffstat (limited to 'src/mod_pubsub.erl')
-rw-r--r--src/mod_pubsub.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl
index 40a32635..465d15a2 100644
--- a/src/mod_pubsub.erl
+++ b/src/mod_pubsub.erl
@@ -1113,7 +1113,7 @@ iq_pubsub(Host, Access, #iq{from = From, type = IQType, lang = Lang,
publish_options = XData, configure = _, _ = undefined}} ->
ServerHost = serverhost(Host),
case Items of
- [#ps_item{id = ItemId, xml_els = Payload}] ->
+ [#ps_item{id = ItemId, sub_els = Payload}] ->
case decode_publish_options(XData, Lang) of
{error, _} = Err ->
Err;
@@ -2659,7 +2659,7 @@ broadcast_publish_item(Host, Node, Nidx, Type, NodeOptions, ItemId, From, Payloa
case get_collection_subscriptions(Host, Node) of
SubsByDepth when is_list(SubsByDepth) ->
EventItem0 = case get_option(NodeOptions, deliver_payloads) of
- true -> #ps_item{xml_els = Payload, id = ItemId};
+ true -> #ps_item{sub_els = Payload, id = ItemId};
false -> #ps_item{id = ItemId}
end,
EventItem = case get_option(NodeOptions, itemreply, none) of
@@ -3743,7 +3743,7 @@ uniqid() ->
-spec itemsEls([#pubsub_item{}]) -> [ps_item()].
itemsEls(Items) ->
- [#ps_item{id = ItemId, xml_els = Payload}
+ [#ps_item{id = ItemId, sub_els = Payload}
|| #pubsub_item{itemid = {ItemId, _}, payload = Payload} <- Items].
-spec add_message_type(message(), message_type()) -> message().