mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: tests
This commit is contained in:
@@ -41,7 +41,6 @@ addons:
|
||||
node_js:
|
||||
- "14"
|
||||
- "12"
|
||||
- "10"
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user