Node.js based forum software built for the modern web
closes #176
Baris Usakli92d35591464a
diff --git a/src/posts.js b/src/posts.jsindex 30902161ad..8282c8a3d7 100644--- a/src/posts.js+++ b/src/posts.js@@ -213,8 +213,7 @@ var RDB = require('./redis.js'),Posts.create(uid, tid, content, images, function(postData) {if (postData) {- topics.addPostToTopic(tid, postData.pid);-+topics.markUnRead(tid);Posts.get_cid_by_pid(postData.pid, function(cid) {@@ -280,6 +279,7 @@ var RDB = require('./redis.js'),RDB.hmset('post:' + pid, postData);+ topics.addPostToTopic(tid, pid);topics.increasePostCount(tid);topics.updateTimestamp(tid, timestamp);diff --git a/src/topics.js b/src/topics.jsindex fff4ee3ae4..29c435bde3 100644--- a/src/topics.js+++ b/src/topics.js@@ -612,7 +612,6 @@ marked.setOptions({posts.create(uid, tid, content, images, function(postData) {if (postData) {- RDB.lpush(schema.topics(tid).posts, postData.pid);// Auto-subscribe the post creator to the newly created topicthreadTools.toggleFollow(tid, uid);