From d9fa78a8663288f63fb1fcd5e6639a66958352fb Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Mon, 22 Jul 2013 13:06:31 -0400 Subject: [PATCH] again --- src/posts.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/posts.js b/src/posts.js index 09cc5938f8..1281dac132 100644 --- a/src/posts.js +++ b/src/posts.js @@ -216,9 +216,9 @@ var RDB = require('./redis.js'), Posts.create(uid, tid, content, images, function(postData) { if (postData) { - RDB.rpush('tid:' + tid + ':posts', postData.pid); - - RDB.del('tid:' + tid + ':read_by_uid'); + topics.addPostToTopic(tid, postData.pid); + + topics.markUnRead(tid); Posts.get_cid_by_pid(postData.pid, function(cid) { RDB.del('cid:' + cid + ':read_by_uid', function(err, data) {