# HG changeset patch # User Jonas Schäfer # Date 1715413931 -7200 # Node ID 6fb26b6691c04d873e55d31546d442bd5c0337bd # Parent 8ff308fad9fd0ab12a8c5f141818d0c410be201d mod_vcard_muc: use XEP-0486 form field for avatar hashes diff -r 8ff308fad9fd -r 6fb26b6691c0 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)