Comparison

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
comparison
equal deleted inserted replaced
9257:05bd21c122ae 9258:0cc535668fce
112 if info and info.attr.type then 112 if info and info.attr.type then
113 vcard_temp:text_tag("TYPE", info.attr.type); 113 vcard_temp:text_tag("TYPE", info.attr.type);
114 end 114 end
115 if data then 115 if data then
116 vcard_temp:text_tag("BINVAL", data.tags[1]:get_text()); 116 vcard_temp:text_tag("BINVAL", data.tags[1]:get_text());
117 elseif info and info.attr.url then
118 vcard_temp:text_tag("EXTVAL", info.attr.uri);
117 end 119 end
118 vcard_temp:up(); 120 vcard_temp:up();
119 end 121 end
120 end 122 end
121 123