Diff

mod_pep_vcard_avatar/mod_pep_vcard_avatar.lua @ 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
parent 2862:933049a60ce6
child 3177:4eff14ac6853
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