fix: dont show deleted topics in digest

This commit is contained in:
Barış Soner Uşaklı
2019-09-09 18:00:05 -04:00
parent 8c2fc57728
commit 4652c68ba7

View File

@@ -131,5 +131,5 @@ async function getTermTopics(term, uid, start, stop) {
topicObj.teaser.content = topicObj.teaser.content.slice(0, 255) + '...';
}
});
return data.topics;
return data.topics.filter(topic => topic && !topic.deleted);
}