|
|
|
@ -365,12 +365,17 @@ 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);
|
|
|
|
|
|
|
|
|
|
if(topicData.pinned === '0')
|
|
|
|
|
RDB.zadd('categories:' + cid + ':tid', timestamp, tid);
|
|
|
|
|
|
|
|
|
|
RDB.scard('cid:' + cid + ':active_users', function(err, amount) {
|
|
|
|
|