mod_vcard_muc: use XEP-0486 form field for avatar hashes
authorJonas Schäfer <jonas@wielicki.name>
Sat, 11 May 2024 09:52:11 +0200
changeset 5907 6fb26b6691c0
parent 5906 8ff308fad9fd
child 5908 d3a72777f149
mod_vcard_muc: use XEP-0486 form field for avatar hashes
mod_vcard_muc/mod_vcard_muc.lua
--- 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)