changeset 2864:6f3859233515

mod_pep_vcard_avatar: Don't set avatar hash if already set
author Michel Le Bihan <michel@lebihan.pl>
date Fri, 26 Jan 2018 19:00:22 +0100
parents f3485eb9cb8b
children f6ed4421167d
files mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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