@baris said in Exclude ignored Topics from Recent Topics widget (nodebb-widget-essentials):
Do you have category ids defined in the widget settings?
Yes I do, that makes it clear.
I'm thinking about the best way to implement your mentioned filtering.
for(int i = 0; i < cids.length; i++) { const isIgnored = await categories.isIgnored(cids[i], widget.uid); for(int j = i; j < isIgnored.length; j++) { if(isIgnored[j]) { // remove from cids array? } } }I know there is an Array.filter() function so I'm pretty sure there is a better/easier way?