mod_vcard_legacy: Also respect avatar:metadata access restrictions
Zash notes this seems to have been lost in 1b657605ea29, probably by
mistake.
--- 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");