mod_pep_vcard_avatar: Fix typo [luacheck]

Sun, 03 Apr 2016 00:21:16 +0200

author
Kim Alvefur <zash@zash.se>
date
Sun, 03 Apr 2016 00:21:16 +0200
changeset 2151
96aca307964b
parent 2150
c1ecc3bc88fa
child 2152
bb4a2e4b7ba7

mod_pep_vcard_avatar: Fix typo [luacheck]

mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua file | annotate | diff | comparison | revisions
--- 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);

mercurial