From 170e5dd94155fd12214a2a2e4454a5fe4e574311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 6 Dec 2021 17:00:25 -0500 Subject: [PATCH] breaking: remove getTopicPosts(tid, ...) usage --- src/topics/posts.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/topics/posts.js b/src/topics/posts.js index 53ca58dfbe..c83c743e95 100644 --- a/src/topics/posts.js +++ b/src/topics/posts.js @@ -25,11 +25,6 @@ module.exports = function (Topics) { if (!topicOrTid) { return []; } - if (typeof topicOrTid !== 'object') { - // TODO: remove in 1.19.0 - winston.warn('[deprecated] Topics.getTopicPosts(tid, ...) usage is deprecated, pass a topic object as first argument!'); - topicOrTid = await Topics.getTopicData(topicOrTid); - } let repliesStart = start; let repliesStop = stop;