diff options
author | Kim Alvefur <zash@zash.se> | 2018-09-01 23:43:19 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-09-01 23:43:19 +0200 |
commit | 00048e67f24e800308f3dc3a83b6d97dda36bf7f (patch) | |
tree | 809c76d4cd4ea551319fe6b49f411a43da85db27 | |
parent | b5adf6f255e372c71dce2c654da2cb0fee78470e (diff) | |
download | prosody-00048e67f24e800308f3dc3a83b6d97dda36bf7f.tar.gz prosody-00048e67f24e800308f3dc3a83b6d97dda36bf7f.zip |
mod_vcard_legacy: Support external avatars
-rw-r--r-- | plugins/mod_vcard_legacy.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_vcard_legacy.lua b/plugins/mod_vcard_legacy.lua index ea6563ed..5c2625e4 100644 --- a/plugins/mod_vcard_legacy.lua +++ b/plugins/mod_vcard_legacy.lua @@ -114,6 +114,8 @@ module:hook("iq-get/bare/vcard-temp:vCard", function (event) end if data then vcard_temp:text_tag("BINVAL", data.tags[1]:get_text()); + elseif info and info.attr.url then + vcard_temp:text_tag("EXTVAL", info.attr.uri); end vcard_temp:up(); end |