mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #1758
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user