mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 14:35:47 +01:00
upgraded userlist to 3 sorted sets, run node app -upgrade after updating to this commit, added infinite scrolling to all user pages, added ops per second to redis page, changed the percentage to 90% for infinite scrolling to kick in
This commit is contained in:
@@ -99,7 +99,9 @@ var RDB = require('./redis.js'),
|
||||
|
||||
posts.getPostFields(pid, ['tid', 'uid'], function(postData) {
|
||||
|
||||
user.decrementUserFieldBy(postData.uid, 'postcount', 1);
|
||||
user.decrementUserFieldBy(postData.uid, 'postcount', 1, function(err, postcount) {
|
||||
RDB.zadd('users:postcount', postcount, postData.uid);
|
||||
});
|
||||
|
||||
io.sockets.in('topic_' + postData.tid).emit('event:post_deleted', {
|
||||
pid: pid
|
||||
|
||||
Reference in New Issue
Block a user