aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
parent8db7cdc71321f4a367338df87a7e90629e741ff9 (diff)
parent96301b2229b2ceeab1797e4bc4e29707b0a32681 (diff)
downloadprosody-7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c.tar.gz
prosody-7c8dd7ee42d3855f4360c9fdd43016ecafa64e8c.zip
Merge 0.12->trunk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_bookmarks.lua6
-rw-r--r--plugins/mod_storage_sql.lua2
2 files changed, 6 insertions, 2 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
diff --git a/plugins/mod_storage_sql.lua b/plugins/mod_storage_sql.lua
index b1e90752..df5ab069 100644
--- a/plugins/mod_storage_sql.lua
+++ b/plugins/mod_storage_sql.lua
@@ -832,7 +832,7 @@ local function normalize_params(params)
end
function module.load()
- if prosody.prosodyctl then return; end
+ if prosody.process_type == "prosodyctl" then return; end
local engines = module:shared("/*/sql/connections");
local params = normalize_params(module:get_option("sql", default_params));
local db_uri = sql.db2uri(params);