Comparison

mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua @ 2151:96aca307964b

mod_pep_vcard_avatar: Fix typo [luacheck]
author Kim Alvefur <zash@zash.se>
date Sun, 03 Apr 2016 00:21:16 +0200
parent 2150:c1ecc3bc88fa
child 2206:724809023c92
comparison
equal deleted inserted replaced
2150:c1ecc3bc88fa 2151:96aca307964b
112 module:log("error", "No photo found"); 112 module:log("error", "No photo found");
113 return; 113 return;
114 end -- Publishing in the wrong order? 114 end -- Publishing in the wrong order?
115 local vcard = get_vcard(username); 115 local vcard = get_vcard(username);
116 local new_photo = st.stanza("PHOTO", { xmlns = "vcard-temp" }) 116 local new_photo = st.stanza("PHOTO", { xmlns = "vcard-temp" })
117 :tag("TYPE"):text(metadat.attr.type):up() 117 :tag("TYPE"):text(metadata.attr.type):up()
118 :tag("BINVAL"):text(pep_photo:get_child_text("data", "urn:xmpp:avatar:data")); 118 :tag("BINVAL"):text(pep_photo:get_child_text("data", "urn:xmpp:avatar:data"));
119 119
120 replace_tag(vcard, new_photo); 120 replace_tag(vcard, new_photo);
121 set_vcard(username, vcard); 121 set_vcard(username, vcard);
122 end 122 end