mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: tests
This commit is contained in:
@@ -41,7 +41,6 @@ addons:
|
|||||||
node_js:
|
node_js:
|
||||||
- "14"
|
- "14"
|
||||||
- "12"
|
- "12"
|
||||||
- "10"
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ module.exports = function (Topics) {
|
|||||||
|
|
||||||
const unreadTopics = _.unionWith(categoryTids, followedTids, (a, b) => a.value === b.value)
|
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]))
|
.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);
|
.sort((a, b) => b.score - a.score);
|
||||||
|
|
||||||
let tids = _.uniq(unreadTopics.map(topic => topic.value)).slice(0, 200);
|
let tids = _.uniq(unreadTopics.map(topic => topic.value)).slice(0, 200);
|
||||||
|
|||||||
Reference in New Issue
Block a user