mod_pep_vcard_avatar: Don't set avatar hash if already set
authorMichel Le Bihan <michel@lebihan.pl>
Fri, 26 Jan 2018 19:00:22 +0100
changeset 2868 6f3859233515
parent 2867 f3485eb9cb8b
child 2869 f6ed4421167d
mod_pep_vcard_avatar: Don't set avatar hash if already set
mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua
--- a/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Fri Jan 12 09:01:25 2018 +0100
+++ b/mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua	Fri Jan 26 19:00:22 2018 +0100
@@ -187,8 +187,6 @@
 			photo = st.stanza("photo")
 			photo:text(hash)
 			x_vcard_update:add_child(photo)
-		elseif photo:get_text() then
-			photo:text(hash)
 		end
 	end
 end