diff options
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-11-25 18:13:43 +0100 |
---|---|---|
committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2021-11-25 18:13:43 +0100 |
commit | 303fd5b4ee153ed5e770156b182c63c2f0b4a60c (patch) | |
tree | 22fbd22caf6f667b102b1ed7b1971413d10b64dc | |
parent | fe93f28b16c039683dff61983cbe229ba6107d8a (diff) | |
download | prosody-303fd5b4ee153ed5e770156b182c63c2f0b4a60c.tar.gz prosody-303fd5b4ee153ed5e770156b182c63c2f0b4a60c.zip |
mod_vcard_legacy: Also respect avatar:metadata access restrictions
Zash notes this seems to have been lost in 1b657605ea29, probably by
mistake.
-rw-r--r-- | plugins/mod_vcard_legacy.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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"); |