mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user