added new sorted set posts:pid

This commit is contained in:
Baris Soner Usakli
2014-02-14 14:39:32 -05:00
parent 4663e0b8be
commit 8c14a59f93
2 changed files with 45 additions and 2 deletions

View File

@@ -63,6 +63,8 @@ var db = require('./database'),
return next(err);
}
db.sortedSetAdd('posts:pid', timestamp, pid);
db.incrObjectField('global', 'postCount');
topics.onNewPostMade(tid, pid, timestamp);