mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
fixed a bug that made topics invisible to users, also closes #47
This commit is contained in:
@@ -167,6 +167,9 @@ var RDB = require('./redis.js'),
|
||||
if (!err && result === 1) {
|
||||
|
||||
topics.setTopicField(tid, 'cid', cid);
|
||||
|
||||
categories.incrementCategoryFieldBy(oldCid, 'topic_count', -1);
|
||||
categories.incrementCategoryFieldBy(cid, 'topic_count', 1);
|
||||
|
||||
categories.getCategories([cid], function(data) {
|
||||
topics.setTopicField(tid, 'category_name', data.categories[0].name);
|
||||
|
||||
Reference in New Issue
Block a user