This commit is contained in:
barisusakli
2014-09-19 19:45:16 -04:00
parent 3d4dad226e
commit 4de658e096
2 changed files with 6 additions and 1 deletions

View File

@@ -206,6 +206,9 @@ module.exports = function(Topics) {
};
Topics.markTopicNotificationsRead = function(tid, uid) {
if (!tid) {
return;
}
user.notifications.getUnreadByField(uid, 'tid', tid, function(err, nids) {
if (err) {
return winston.error(err.stack);