Software /
code /
prosody
Changeset
12172:2515033c2a74
mod_bookmarks: Skip migration of legacy data when empty
Should save some cycles and not log the debug message on every login.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Jan 2022 00:13:17 +0100 |
parents | 12171:b2923a3b4e02 |
children | 12173:270047afa6af |
files | plugins/mod_bookmarks.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_bookmarks.lua Mon Jan 10 00:11:36 2022 +0100 +++ b/plugins/mod_bookmarks.lua Mon Jan 10 00:13:17 2022 +0100 @@ -335,7 +335,7 @@ local jid = username.."@"..session.host; local ok, ret = service:get_items(namespace_legacy, session.full_jid); - if ok then + if ok and ret[1] then module:log("debug", "Legacy PEP bookmarks found for %s, migrating.", jid); local failed = false; for _, item_id in ipairs(ret) do