From 303fd5b4ee153ed5e770156b182c63c2f0b4a60c Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Thu, 25 Nov 2021 18:13:43 +0100 Subject: mod_vcard_legacy: Also respect avatar:metadata access restrictions Zash notes this seems to have been lost in 1b657605ea29, probably by mistake. --- plugins/mod_vcard_legacy.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/mod_vcard_legacy.lua') diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua index 92b1d5e9..107f20da 100644 --- a/plugins/mod_vcard_legacy.lua +++ b/plugins/mod_vcard_legacy.lua @@ -126,7 +126,7 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event) 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"); -- cgit v1.2.3