Diff

plugins/mod_vcard_legacy.lua @ 9258:0cc535668fce

mod_vcard_legacy: Support external avatars
author Kim Alvefur <zash@zash.se>
date Sat, 01 Sep 2018 23:43:19 +0200
parent 9257:05bd21c122ae
child 9259:926a88dd5c54
line wrap: on
line diff
--- a/plugins/mod_vcard_legacy.lua	Sat Sep 01 23:42:33 2018 +0200
+++ b/plugins/mod_vcard_legacy.lua	Sat Sep 01 23:43:19 2018 +0200
@@ -114,6 +114,8 @@
 			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