Fix "text" in pages.meet displaying HTML as is

This commit is contained in:
Niko 2022-02-16 19:35:19 +01:00
parent 64daaab7d6
commit 2089c786b3
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ app.pages.meet = {
for (var i = 0; i < json.length; i++) { for (var i = 0; i < json.length; i++) {
var tpl = app.template.fill(json[i], app.template.get('meet.item'), var tpl = app.template.fill(json[i], app.template.get('meet.item'),
function (k,v) { function (k,v) {
if (k === 'text') return html2text(v);
if (k === 'account.name') return capitalize(v); if (k === 'account.name') return capitalize(v);
if (k === 'date') return dayjs(v).fromNow(true); if (k === 'date') return dayjs(v).fromNow(true);
}); });