add tests for blocked users teaser/unread

This commit is contained in:
Barış Soner Uşaklı
2018-10-15 11:09:57 -04:00
parent a8e98e46df
commit c06480b82e
3 changed files with 63 additions and 5 deletions

View File

@@ -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);