Comparison

plugins/mod_bookmarks.lua @ 12259:57792ed670e7

mod_bookmarks: Fix typos in stanza error messages [codespell]
author Kim Alvefur <zash@zash.se>
date Fri, 04 Feb 2022 16:39:35 +0100
parent 12178:0aa99a6dfb3e
child 12593:1832b6c9c6ed
comparison
equal deleted inserted replaced
12258:99560987ea19 12259:57792ed670e7
86 local jid = username.."@"..session.host; 86 local jid = username.."@"..session.host;
87 local service = mod_pep.get_pep_service(username); 87 local service = mod_pep.get_pep_service(username);
88 local ok, ret = service:get_items(namespace, session.full_jid); 88 local ok, ret = service:get_items(namespace, session.full_jid);
89 if not ok then 89 if not ok then
90 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret); 90 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret);
91 session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrive bookmarks from PEP")); 91 session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrieve bookmarks from PEP"));
92 return true; 92 return true;
93 end 93 end
94 94
95 local storage = generate_legacy_storage(ret); 95 local storage = generate_legacy_storage(ret);
96 96
125 if ret == "item-not-found" then 125 if ret == "item-not-found" then
126 module:log("debug", "Got no PEP bookmarks item for %s, returning empty private bookmarks", jid); 126 module:log("debug", "Got no PEP bookmarks item for %s, returning empty private bookmarks", jid);
127 session.send(st.reply(stanza):add_child(query)); 127 session.send(st.reply(stanza):add_child(query));
128 else 128 else
129 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret); 129 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", jid, ret);
130 session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrive bookmarks from PEP")); 130 session.send(st.error_reply(stanza, "cancel", ret, "Failed to retrieve bookmarks from PEP"));
131 end 131 end
132 return true; 132 return true;
133 end 133 end
134 134
135 local storage = generate_legacy_storage(ret); 135 local storage = generate_legacy_storage(ret);