This commit is contained in:
Baris Soner Usakli
2014-02-27 23:45:12 -05:00
parent 0682b5c5ea
commit 091723a8c5
8 changed files with 251 additions and 30 deletions

View File

@@ -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;