mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 02:36:16 +01:00
closes #6759
-moved user.blocks.filter from unread controller to getUnreadTopics so topics are filtered at other places this function is called - when a new post is made do not send it to uids that have blocked the poster - update getUnreadTids so it does not return topics that have new posts from blocked users - update hasReadTopics so it does not return false data if topic has new posts from blocked users
This commit is contained in:
@@ -54,12 +54,6 @@ unreadController.get = function (req, res, next) {
|
||||
cutoff: cutoff,
|
||||
}, next);
|
||||
},
|
||||
function (data, next) {
|
||||
user.blocks.filter(req.uid, data.topics, function (err, filtered) {
|
||||
data.topics = filtered;
|
||||
next(err, data);
|
||||
});
|
||||
},
|
||||
function (data) {
|
||||
data.title = meta.config.homePageTitle || '[[pages:home]]';
|
||||
data.pageCount = Math.max(1, Math.ceil(data.topicCount / settings.topicsPerPage));
|
||||
|
||||
Reference in New Issue
Block a user