Community Modules


changeset 6f3859233515

mod_pep_vcard_avatar: Don't set avatar hash if already set

author
Michel Le Bihan
date
parents
children
files

1 files changed, 0 insertions(+), 2 deletions(-)

↓ Download patch

--- 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