Software /
code /
prosody
Diff
plugins/mod_vcard_legacy.lua @ 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 |
parent | 10865:9c27b2385fad |
child | 12977:74b9e05af71e |
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");