Changeset

5927:6fb26b6691c0

mod_vcard_muc: use XEP-0486 form field for avatar hashes
author Jonas Schäfer <jonas@wielicki.name>
date Sat, 11 May 2024 09:52:11 +0200
parents 5926:8ff308fad9fd
children 5928:d3a72777f149
files mod_vcard_muc/mod_vcard_muc.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mod_vcard_muc/mod_vcard_muc.lua	Thu May 09 10:13:26 2024 +0200
+++ b/mod_vcard_muc/mod_vcard_muc.lua	Sat May 11 09:52:11 2024 +0200
@@ -103,10 +103,10 @@
 	event.reply:tag("feature", { var = "vcard-temp" }):up();
 
 	table.insert(event.form, {
-			name = "{http://modules.prosody.im/mod_vcard_muc}avatar#sha1",
+			name = "muc#roominfo_avatarhash",
 			type = "text-single",
 		});
-	event.formdata["{http://modules.prosody.im/mod_vcard_muc}avatar#sha1"] = get_photo_hash(event.room);
+	event.formdata["muc#roominfo_avatarhash"] = get_photo_hash(event.room);
 end);
 
 module:hook("muc-occupant-session-new", function(event)