# HG changeset patch # User Emmanuel Gil Peyrot # Date 1637860423 -3600 # Node ID 8b5e646dfaa6c5d763ad62e59bf76611d504f8aa # Parent cf47834d369891f55a468f4135fa0eca61bad199 mod_vcard_legacy: Also respect avatar:metadata access restrictions Zash notes this seems to have been lost in 1b657605ea29, probably by mistake. diff -r cf47834d3698 -r 8b5e646dfaa6 plugins/mod_vcard_legacy.lua --- 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");