aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_bookmarks.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-07-27 00:10:08 +0200
committerKim Alvefur <zash@zash.se>2022-07-27 00:10:08 +0200
commit7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c (patch)
tree5cdbe643c8923e1f00d65f16931380732d8d2962 /plugins/mod_bookmarks.lua
parent8db7cdc71321f4a367338df87a7e90629e741ff9 (diff)
parent96301b2229b2ceeab1797e4bc4e29707b0a32681 (diff)
downloadprosody-7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c.tar.gz
prosody-7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins/mod_bookmarks.lua')
-rw-r--r--plugins/mod_bookmarks.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_bookmarks.lua b/plugins/mod_bookmarks.lua
index cd6eae67..d67915f8 100644
--- a/plugins/mod_bookmarks.lua
+++ b/plugins/mod_bookmarks.lua
@@ -87,7 +87,11 @@ local function on_retrieve_legacy_pep(event)
local service = mod_pep.get_pep_service(username);
local ok, ret = service:get_items(namespace, session.full_jid);
if not ok then
- module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret);
+ if ret == "item-not-found" then
+ module:log("debug", "Got no PEP bookmarks item for %s, returning empty private bookmarks", jid);
+ else
+ module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret);
+ end
session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrieve bookmarks from PEP"));
return true;
end