mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
breaking: remove getTopicPosts(tid, ...) usage
This commit is contained in:
@@ -25,11 +25,6 @@ module.exports = function (Topics) {
|
|||||||
if (!topicOrTid) {
|
if (!topicOrTid) {
|
||||||
return [];
|
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 repliesStart = start;
|
||||||
let repliesStop = stop;
|
let repliesStop = stop;
|
||||||
|
|||||||
Reference in New Issue
Block a user