|
|
|
@ -6,7 +6,7 @@ var RDB = require('./redis.js'),
|
|
|
|
|
posts = require('./posts.js'),
|
|
|
|
|
threadTools = require('./threadTools.js'),
|
|
|
|
|
postTools = require('./postTools'),
|
|
|
|
|
Notifications = require('./notifications'),
|
|
|
|
|
notifications = require('./notifications'),
|
|
|
|
|
async = require('async'),
|
|
|
|
|
feed = require('./feed.js'),
|
|
|
|
|
favourites = require('./favourites.js'),
|
|
|
|
@ -677,7 +677,7 @@ var RDB = require('./redis.js'),
|
|
|
|
|
user.notifications.getUnreadByUniqueId(uid, 'topic:' + tid, function(err, nids) {
|
|
|
|
|
if (nids.length > 0) {
|
|
|
|
|
async.each(nids, function(nid, next) {
|
|
|
|
|
Notifications.mark_read(nid, uid, next);
|
|
|
|
|
notifications.mark_read(nid, uid, next);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|