mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-14 17:56:16 +01:00
fix mark all read
This commit is contained in:
@@ -14,6 +14,8 @@ module.exports = function(Topics) {
|
||||
|
||||
var unreadCutoff = 86400000 * 2;
|
||||
|
||||
Topics.unreadCutoff = unreadCutoff;
|
||||
|
||||
Topics.getTotalUnread = function(uid, callback) {
|
||||
Topics.getUnreadTids(0, uid, 0, 20, function(err, tids) {
|
||||
callback(err, tids ? tids.length : 0);
|
||||
|
||||
Reference in New Issue
Block a user