24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

Fix crash in mod_private bookmarks converter

This should fix issue reported in #4092
This commit is contained in:
Paweł Chmielowski 2023-10-02 08:32:24 +02:00
parent 762e4951f2
commit a63d3bf0d6

View File

@ -379,8 +379,10 @@ publish_pep_xmpp_bookmarks(JID, Data) ->
err_ret({error, _} = E, _) ->
E;
err_ret(ok, E) ->
E.
err_ret(ok, {error, _} = E) ->
E;
err_ret(_, _) ->
ok.
-spec pubsub_publish_item(binary(), binary(), jid(), jid(),
binary(), [xmlel()]) -> any().