mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 12:36:02 +01:00
closes #206
This commit is contained in:
@@ -199,12 +199,19 @@ var RDB = require('./redis.js'),
|
||||
}
|
||||
});
|
||||
|
||||
categories.moveActiveUsers(tid, oldCid, cid, function(err, data) {
|
||||
if(err) {
|
||||
winston.err(err);
|
||||
}
|
||||
});
|
||||
|
||||
categories.incrementCategoryFieldBy(oldCid, 'topic_count', -1);
|
||||
categories.incrementCategoryFieldBy(cid, 'topic_count', 1);
|
||||
|
||||
socket.emit('api:topic.move', {
|
||||
status: 'ok'
|
||||
});
|
||||
|
||||
io.sockets.in('topic_' + tid).emit('event:topic_moved', {
|
||||
tid: tid
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user