From 65d049c6f965f47ba9859e7836fef098eb401263 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Fri, 11 Sep 2020 00:55:43 -0400 Subject: [PATCH] fix: tests --- .travis.yml | 1 - src/topics/unread.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8acb2016c2..e302e25b74 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,7 +41,6 @@ addons: node_js: - "14" - "12" - - "10" branches: only: - master diff --git a/src/topics/unread.js b/src/topics/unread.js index e8ed36a2a9..128c5008f2 100644 --- a/src/topics/unread.js +++ b/src/topics/unread.js @@ -115,7 +115,7 @@ module.exports = function (Topics) { const unreadTopics = _.unionWith(categoryTids, followedTids, (a, b) => a.value === b.value) .filter(t => !ignoredTids.includes(t.value) && (!userReadTime[t.value] || t.score > userReadTime[t.value])) - .concat(tids_unread) + .concat(tids_unread.filter(t => !ignoredTids.includes(t.value))) .sort((a, b) => b.score - a.score); let tids = _.uniq(unreadTopics.map(topic => topic.value)).slice(0, 200);