comparison mod_bookmarks/mod_bookmarks.lua @ 3232:34e30a891bd3

mod_bookmarks: Fix traceback on retrieval since ba0d444b64aa.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Sat, 18 Aug 2018 14:11:26 +0100
parents f7777bc6e677
children 176b537a658c
comparison
equal deleted inserted replaced
3231:f7777bc6e677 3232:34e30a891bd3
29 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", username, id); 29 module:log("error", "Failed to retrieve PEP bookmarks of %s: %s", username, id);
30 session.send(st.error_reply(stanza, "cancel", "internal-server-error", "Failed to retrive bookmarks from PEP")); 30 session.send(st.error_reply(stanza, "cancel", "internal-server-error", "Failed to retrive bookmarks from PEP"));
31 return; 31 return;
32 end 32 end
33 33
34 local item = data[id];
35 local content = item.tags[1]; 34 local content = item.tags[1];
36 module:log("debug", "Sending back private for %s: %s", username, content); 35 module:log("debug", "Sending back private for %s: %s", username, content);
37 session.send(st.reply(stanza):query("jabber:iq:private"):add_child(content)); 36 session.send(st.reply(stanza):query("jabber:iq:private"):add_child(content));
38 return true; 37 return true;
39 end 38 end