Skip to content

Node.js based forum software built for the modern web

chore: added missing deprecation warning for .getTopics

Julian Lam9079ad0b2c6b
diff --git a/src/socket.io/categories.js b/src/socket.io/categories.js
index 016985935c..ae2378d73a 100644
--- a/src/socket.io/categories.js
+++ b/src/socket.io/categories.js
@@ -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]]');
}