This commit is contained in:
barisusakli
2014-06-27 15:35:53 -04:00
parent 181613e946
commit a9e5e82431
6 changed files with 60 additions and 23 deletions

View File

@@ -57,6 +57,10 @@ SocketTopics.postcount = function(socket, tid, callback) {
topics.getTopicField(tid, 'postcount', callback);
};
SocketTopics.lastPostIndex = function(socket, tid, callback) {
db.sortedSetCard('tid:' + tid + ':posts', callback);
};
SocketTopics.increaseViewCount = function(socket, tid) {
topics.increaseViewCount(tid);
};