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
1 changed files with 4 additions and 2 deletions

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().