From 9079ad0b2c6ba21192d1cefa3402d73fdd3b9c0a Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Mon, 20 Nov 2023 16:18:11 -0500 Subject: [PATCH] chore: added missing deprecation warning for .getTopics --- src/socket.io/categories.js | 2 ++ 1 file changed, 2 insertions(+) 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]]'); }