|
|
|
@ -64,7 +64,7 @@ module.exports = function (SocketTopics) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SocketTopics.loadMoreSortedTopics = async function (socket, data) {
|
|
|
|
|
winston.warn('[deprecated] use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0
|
|
|
|
|
winston.warn('[deprecated] SocketTopics.loadMoreSortedTopics use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0
|
|
|
|
|
if (!data || !utils.isNumber(data.after) || parseInt(data.after, 10) < 0) {
|
|
|
|
|
throw new Error('[[error:invalid-data]]');
|
|
|
|
|
}
|
|
|
|
@ -88,7 +88,7 @@ module.exports = function (SocketTopics) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
SocketTopics.loadMoreFromSet = async function (socket, data) {
|
|
|
|
|
winston.warn('[deprecated] use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0
|
|
|
|
|
winston.warn('[deprecated] SocketTopics.loadMoreFromSet use infinitescroll.loadMoreXhr'); // TODO: remove in 1.19.0
|
|
|
|
|
if (!data || !utils.isNumber(data.after) || parseInt(data.after, 10) < 0 || !data.set) {
|
|
|
|
|
throw new Error('[[error:invalid-data]]');
|
|
|
|
|
}
|
|
|
|
|