From bb153c49a14ca7e91bba714c7cfbe3a0ed2ffb6f Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Mon, 14 Mar 2022 15:13:26 +0100 Subject: [PATCH] DEV: Deprecate /posts/:id/reply-ids/all (#16136) * DEV: Deprecate /posts/:id/reply-ids/all It was added in https://github.com/discourse/discourse/commit/ed4c0c4a6385f1f238135f1a31140123ea259854 and its only use was removed in https://github.com/discourse/discourse/commit/b58867b6e936a5247304e9f06f827cf5012a92ed Nothing in all-the* seems to be using this endpoint. * Update app/controllers/posts_controller.rb Co-authored-by: Alan Guo Xiang Tan --- app/controllers/posts_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 0134f41197b..b4950adbc47 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -309,6 +309,8 @@ class PostsController < ApplicationController end def all_reply_ids + Discourse.deprecate("/posts/:id/reply-ids/all is deprecated.", drop_from: "3.0") + post = find_post_from_params render json: post.reply_ids(guardian, only_replies_to_single_post: false).to_json end