mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua
changeset 2155 96aca307964b
parent 2154 c1ecc3bc88fa
child 2210 724809023c92
--- a/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Sun Apr 03 00:19:51 2016 +0200
+++ b/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Sun Apr 03 00:21:16 2016 +0200
@@ -114,7 +114,7 @@
 	end -- Publishing in the wrong order?
 	local vcard = get_vcard(username);
 	local new_photo = st.stanza("PHOTO", { xmlns = "vcard-temp" })
-		:tag("TYPE"):text(metadat.attr.type):up()
+		:tag("TYPE"):text(metadata.attr.type):up()
 		:tag("BINVAL"):text(pep_photo:get_child_text("data", "urn:xmpp:avatar:data"));
 
 	replace_tag(vcard, new_photo);