This commit is contained in:
Baris Soner Usakli
2013-10-22 21:47:09 -04:00
parent 55e990f71d
commit ab1015b11e
2 changed files with 7 additions and 7 deletions

View File

@@ -365,13 +365,18 @@ var RDB = require('./redis.js'),
RDB.incr('totalpostcount');
topics.getTopicField(tid, 'cid', function(err, cid) {
topics.getTopicFields(tid, ['cid', 'pinned'], function(err, topicData) {
RDB.handle(err);
var cid = topicData.cid;
feed.updateTopic(tid);
RDB.zadd('categories:recent_posts:cid:' + cid, timestamp, pid);
RDB.zadd('categories:' + cid + ':tid', timestamp, tid);
if(topicData.pinned === '0')
RDB.zadd('categories:' + cid + ':tid', timestamp, tid);
RDB.scard('cid:' + cid + ':active_users', function(err, amount) {
if (amount > 10) {