From 4652c68ba7279678a073753e42d6f9ff68840cbe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 9 Sep 2019 18:00:05 -0400 Subject: [PATCH] fix: dont show deleted topics in digest --- src/user/digest.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user/digest.js b/src/user/digest.js index 3455c811b7..7fdfa764cb 100644 --- a/src/user/digest.js +++ b/src/user/digest.js @@ -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); }