Changeset

9258:0cc535668fce

mod_vcard_legacy: Support external avatars
author Kim Alvefur <zash@zash.se>
date Sat, 01 Sep 2018 23:43:19 +0200
parents 9257:05bd21c122ae
children 9259:926a88dd5c54
files plugins/mod_vcard_legacy.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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