From 2269d290d80672e4e71e380d693404280c7050d2 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Thu, 25 Jan 2018 20:02:47 +0300 Subject: Switch to newer fast_xml and xmpp and update record fields in the code --- src/mod_pubsub.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mod_pubsub.erl') 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(). -- cgit v1.2.3