1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 01:39:35 +02:00

mod_private: Don't warn on conversion errors

Clients publish invalid bookmark elements in practice (e.g., bookmarks
with an empty <nick/> element).  The server admin can't address that
issue, so don't spam the log with warnings.
This commit is contained in:
Holger Weiss 2025-01-31 13:51:37 +01:00
parent 20a0051578
commit e134d7f0b4

View file

@ -340,8 +340,8 @@ publish_pep_native_bookmarks(JID, Data) ->
#bookmark_storage{conference = C} -> C; #bookmark_storage{conference = C} -> C;
_ -> [] _ -> []
catch _:{xmpp_codec, Why} -> catch _:{xmpp_codec, Why} ->
?WARNING_MSG("Failed to decode bookmarks of ~ts: ~ts", ?DEBUG("Failed to decode bookmarks of ~ts: ~ts",
[jid:encode(JID), xmpp:format_error(Why)]), [jid:encode(JID), xmpp:format_error(Why)]),
[] []
end, end,
PubOpts = [{persist_items, true}, {access_model, whitelist}, {max_items, max}, {notify_retract,true}, {notify_delete,true}, {send_last_published_item, never}], PubOpts = [{persist_items, true}, {access_model, whitelist}, {max_items, max}, {notify_retract,true}, {notify_delete,true}, {send_last_published_item, never}],