mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 02:25:55 +01:00
closes #2658
This commit is contained in:
@@ -154,11 +154,9 @@ module.exports = function(Topics) {
|
||||
return callback();
|
||||
}
|
||||
tids = tids.filter(Boolean);
|
||||
|
||||
var now = Date.now();
|
||||
var scores = tids.map(function(tid) {
|
||||
return now;
|
||||
});
|
||||
if (!tids.length) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
async.parallel({
|
||||
topicScores: function(next) {
|
||||
@@ -180,6 +178,11 @@ module.exports = function(Topics) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
var now = Date.now();
|
||||
var scores = tids.map(function(tid) {
|
||||
return now;
|
||||
});
|
||||
|
||||
async.parallel({
|
||||
markRead: function(next) {
|
||||
db.sortedSetAdd('uid:' + uid + ':tids_read', scores, tids, next);
|
||||
|
||||
Reference in New Issue
Block a user