mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 17:16:14 +01:00
closes #1101
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
var topics = require('../topics'),
|
||||
categories = require('../categories'),
|
||||
threadTools = require('../threadTools'),
|
||||
index = require('./index'),
|
||||
user = require('../user'),
|
||||
@@ -291,9 +292,16 @@ SocketTopics.loadMoreFromSet = function(socket, data, callback) {
|
||||
topics.getTopicsFromSet(socket.uid, data.set, start, end, callback);
|
||||
};
|
||||
|
||||
|
||||
SocketTopics.getPageCount = function(socket, tid, callback) {
|
||||
topics.getPageCount(tid, socket.uid, callback);
|
||||
};
|
||||
|
||||
SocketTopics.getTidPage = function(socket, tid, callback) {
|
||||
topics.getTidPage(tid, socket.uid, callback);
|
||||
};
|
||||
|
||||
SocketTopics.getTidIndex = function(socket, tid, callback) {
|
||||
categories.getTopicIndex(tid, callback);
|
||||
};
|
||||
|
||||
module.exports = SocketTopics;
|
||||
Reference in New Issue
Block a user