Node.js based forum software built for the modern web
on new topic create add to votes sorted set
Barış Soner Uşaklı510e57d41421
diff --git a/src/topics/create.js b/src/topics/create.jsindex edb1f1b84d..bc1091bf52 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -64,6 +64,9 @@ module.exports = function (Topics) {'cid:' + topicData.cid + ':uid:' + topicData.uid + ':tids',], timestamp, topicData.tid, next);},+ function (next) {+ db.sortedSetAdd('cid:' + topicData.cid + ':tids:votes', 0, topicData.tid, next);+ },function (next) {categories.updateRecentTid(topicData.cid, topicData.tid, next);},