mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
chore: added missing deprecation warning for .getTopics
This commit is contained in:
@@ -37,6 +37,8 @@ SocketCategories.getWatchedCategories = async function (socket) {
|
||||
};
|
||||
|
||||
SocketCategories.loadMore = async function (socket, data) {
|
||||
sockets.warnDeprecated(socket, 'GET /api/v3/categories/:cid/topics');
|
||||
|
||||
if (!data) {
|
||||
throw new Error('[[error:invalid-data]]');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user