aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-09-01 23:43:19 +0200
committerKim Alvefur <zash@zash.se>2018-09-01 23:43:19 +0200
commitc8924fdfe4d77d8b48eb41733d33b86b4caf5891 (patch)
tree809c76d4cd4ea551319fe6b49f411a43da85db27
parentac72eeee52479dda94470328fe1239a95f1fec1a (diff)
downloadprosody-c8924fdfe4d77d8b48eb41733d33b86b4caf5891.tar.gz
prosody-c8924fdfe4d77d8b48eb41733d33b86b4caf5891.zip
mod_vcard_legacy: Support external avatars
-rw-r--r--plugins/mod_vcard_legacy.lua2
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