From 00048e67f24e800308f3dc3a83b6d97dda36bf7f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 1 Sep 2018 23:43:19 +0200 Subject: mod_vcard_legacy: Support external avatars --- plugins/mod_vcard_legacy.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/mod_vcard_legacy.lua') 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 -- cgit v1.2.3