mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Update calls of old xml_stream and xml, to exmpp.
This commit is contained in:
parent
7471d49b5a
commit
58a4b594db
@ -120,7 +120,6 @@
|
||||
tls,
|
||||
translate,
|
||||
xml,
|
||||
xml_stream,
|
||||
'XmppAddr'
|
||||
]},
|
||||
{registered, [ejabberd,
|
||||
|
@ -1360,9 +1360,9 @@ raw_to_item(NodeId, {ItemId, SJID, Creation, Modification, XML}) ->
|
||||
[T1,T2,T3] = string:tokens(Str, ":"),
|
||||
{l2i(T1), l2i(T2), l2i(T3)}
|
||||
end,
|
||||
Payload = case xml_stream:parse_element(XML) of
|
||||
Payload = case exmpp_xmlstream:parse_element(XML) of
|
||||
{error, _Reason} -> [];
|
||||
El -> [El]
|
||||
[El] -> [El]
|
||||
end,
|
||||
#pubsub_item{itemid = {ItemId, NodeId},
|
||||
creation={ToTime(Creation), JID},
|
||||
|
Loading…
Reference in New Issue
Block a user