Fix icons for topics plugin

This commit is contained in:
lowlighter
2021-04-07 19:42:23 +02:00
parent 0dac122505
commit 6b0e631008

View File

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