Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
11943:cf47834d3698 | 11944:8b5e646dfaa6 |
---|---|
124 vcard_temp:text_tag("NICKNAME", nickname); | 124 vcard_temp:text_tag("NICKNAME", nickname); |
125 end | 125 end |
126 end | 126 end |
127 end | 127 end |
128 | 128 |
129 local ok, avatar_hash, meta = pep_service:get_last_item("urn:xmpp:avatar:metadata", true); | 129 local ok, avatar_hash, meta = pep_service:get_last_item("urn:xmpp:avatar:metadata", stanza.attr.from); |
130 if ok and avatar_hash then | 130 if ok and avatar_hash then |
131 | 131 |
132 local info = meta.tags[1]:get_child("info"); | 132 local info = meta.tags[1]:get_child("info"); |
133 if info then | 133 if info then |
134 vcard_temp:tag("PHOTO"); | 134 vcard_temp:tag("PHOTO"); |