Changeset

11944:8b5e646dfaa6

mod_vcard_legacy: Also respect avatar:metadata access restrictions Zash notes this seems to have been lost in 1b657605ea29, probably by mistake.
author Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
date Thu, 25 Nov 2021 18:13:43 +0100
parents 11943:cf47834d3698
children 11945:142b9c4010fe
files plugins/mod_vcard_legacy.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua	Thu Nov 25 17:07:13 2021 +0100
+++ b/plugins/mod_vcard_legacy.lua	Thu Nov 25 18:13:43 2021 +0100
@@ -126,7 +126,7 @@
 		end
 	end
 
-	local ok, avatar_hash, meta = pep_service:get_last_item("urn:xmpp:avatar:metadata", true);
+	local ok, avatar_hash, meta = pep_service:get_last_item("urn:xmpp:avatar:metadata", stanza.attr.from);
 	if ok and avatar_hash then
 
 		local info = meta.tags[1]:get_child("info");