fixed read notifications

This commit is contained in:
Baris Soner Usakli
2014-02-13 11:35:27 -05:00
parent 9f663411db
commit ce4896f2c5
2 changed files with 10 additions and 6 deletions

View File

@@ -26,8 +26,6 @@ var async = require('async'),
return callback(err);
}
db.setAdd('topics:tid', tid);
var slug = tid + '/' + utils.slugify(title),
timestamp = Date.now();
@@ -48,6 +46,8 @@ var async = require('async'),
if(err) {
return callback(err);
}
db.setAdd('topics:tid', tid);
db.searchIndex('topic', title, tid);
user.addTopicIdToUser(uid, tid, timestamp);