comparison mod_auto_moved/mod_auto_moved.lua @ 6436:fdf7b82099de

mod_auto_moved: Replace util.serialization.serialize with %q
author Link Mauve <linkmauve@linkmauve.fr>
date Wed, 11 Mar 2026 00:32:02 +0100
parents f95a1e197a07
children
comparison
equal deleted inserted replaced
6435:4c79399e9bc8 6436:fdf7b82099de
76 module:log("debug", "Requesting subscription to new JID"); 76 module:log("debug", "Requesting subscription to new JID");
77 rm.set_contact_pending_out(to_user, module.host, new_jid); 77 rm.set_contact_pending_out(to_user, module.host, new_jid);
78 module:send(st.presence({ to = new_jid, from = to_user.."@"..module.host, type = "subscribe" })); 78 module:send(st.presence({ to = new_jid, from = to_user.."@"..module.host, type = "subscribe" }));
79 end 79 end
80 end):catch(function (err) 80 end):catch(function (err)
81 module:log("debug", "Failed to verify moved statement for <%s> -> <%s>: %s", old_jid, new_jid_unverified, require "util.serialization".serialize(err, "debug")); 81 module:log("debug", "Failed to verify moved statement for <%s> -> <%s>: %q", old_jid, new_jid_unverified, err);
82 stanza:reset() 82 stanza:reset()
83 :tag("moved-verification", { xmlns = "https://prosody.im/protocol/moved", status = "failed" }) 83 :tag("moved-verification", { xmlns = "https://prosody.im/protocol/moved", status = "failed" })
84 :up(); 84 :up();
85 module:send(stanza, origin); 85 module:send(stanza, origin);
86 end); 86 end);