Comparison

plugins/mod_storage_xep0227.lua @ 12193:a6d2b536c41a

mod_storage_xep0227: Fix file export (missing parameter) from refactor in 270047afa6af
author Matthew Wild <mwild1@gmail.com>
date Mon, 17 Jan 2022 14:11:45 +0000
parent 12189:82c8e855c850
child 12194:9965d7d126c7
comparison
equal deleted inserted replaced
12192:6a772a0c0dfd 12193:a6d2b536c41a
32 module:log("debug", "Loaded %s", path); 32 module:log("debug", "Loaded %s", path);
33 local s = f:read("*a"); 33 local s = f:read("*a");
34 f:close(); 34 f:close();
35 return parse_xml_real(s); 35 return parse_xml_real(s);
36 end 36 end
37 local function default_set_user_xml(user, host, xml) 37 local function default_set_user_xml(self, user, host, xml)
38 local jid = jid_join(user, host); 38 local jid = jid_join(user, host);
39 local path = paths.join(prosody.paths.data, jid..".xml"); 39 local path = paths.join(prosody.paths.data, jid..".xml");
40 local f, err = io_open(path, "w"); 40 local f, err = io_open(path, "w");
41 if not f then return f, err; end 41 if not f then return f, err; end
42 if xml then 42 if xml then