Improve topics plugin support

This commit is contained in:
lowlighter
2021-04-07 17:58:57 +02:00
parent 25c138627d
commit 29f44ea1fe
4 changed files with 19 additions and 5 deletions

View File

@@ -64,6 +64,7 @@
if (topic.icon) {
console.debug(`metrics/compute/${login}/plugins > topics > processing ${topic.name}`)
topic.icon = await imports.imgb64(topic.icon)
topic.icon24 = await imports.imgb64(topic.icon, {force:true, width:24, height:24})
}
//Escape HTML description
topic.description = imports.htmlescape(topic.description)