mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
add tests for blocked users teaser/unread
This commit is contained in:
@@ -213,6 +213,7 @@ module.exports = function (Topics) {
|
||||
}
|
||||
|
||||
if (topic && topic.cid && cidMatch(topic.cid) && !blockedUids.includes(parseInt(topic.uid, 10))) {
|
||||
topic.tid = parseInt(topic.tid, 10);
|
||||
if ((results.isTopicsFollowed[index] || !results.ignoredCids.includes(String(topic.cid)))) {
|
||||
counts[''] += 1;
|
||||
tidsByFilter[''].push(topic.tid);
|
||||
|
||||
Reference in New Issue
Block a user