comparison mod_profile/mod_profile.lua @ 2790:5163f7905371

mod_profile: Update get_pep_service() signature to match recent changes to mod_pep_plus (in trunk)
author Kim Alvefur <zash@zash.se>
date Tue, 10 Oct 2017 00:50:40 +0200
parents b64c0150d663
children 1f2272cda0d7
comparison
equal deleted inserted replaced
2789:37ae0801f925 2790:5163f7905371
42 end 42 end
43 return "application/octet-stream"; 43 return "application/octet-stream";
44 end 44 end
45 45
46 local function update_pep(username, data, pep) 46 local function update_pep(username, data, pep)
47 pep = pep or pep_plus.get_pep_service(username.."@"..module.host); 47 pep = pep or pep_plus.get_pep_service(username);
48 local photo, p = get_item(data, "PHOTO"); 48 local photo, p = get_item(data, "PHOTO");
49 if vcard.to_vcard4 then 49 if vcard.to_vcard4 then
50 if p then t_remove(data, p); end 50 if p then t_remove(data, p); end
51 pep:purge("urn:xmpp:vcard4", true); 51 pep:purge("urn:xmpp:vcard4", true);
52 pep:publish("urn:xmpp:vcard4", true, "current", st.stanza("item", {id="current"}) 52 pep:publish("urn:xmpp:vcard4", true, "current", st.stanza("item", {id="current"})