From dfb6606432a2bd6835b36544703ef15af0376143 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Mon, 28 Jul 2014 16:11:26 -0400 Subject: [PATCH] one more fix --- src/routes/debug.js | 1 + src/user/notifications.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/debug.js b/src/routes/debug.js index d41bfac333..414df20dbd 100644 --- a/src/routes/debug.js +++ b/src/routes/debug.js @@ -72,6 +72,7 @@ module.exports = function(app, middleware, controllers) { bodyLong: 'asdasd khajsdhakhdakj hdkash dakhdakjdhakjs', path: nconf.get('relative_path') + '/topic/' + topicSlug + '/' + postIndex, uniqueId: 'topic:' + tid, + tid: tid, from: fromUid }, function(err, nid) { notifications.push(nid, [1]); diff --git a/src/user/notifications.js b/src/user/notifications.js index ad42baa7c2..b4720c1fee 100644 --- a/src/user/notifications.js +++ b/src/user/notifications.js @@ -212,7 +212,7 @@ var async = require('async'), }); async.filter(nids, function(nid, next) { - notifications.get(nid, uid, function(err, notifObj) { + notifications.get(nid, function(err, notifObj) { if (err || !notifObj) { return next(false); }