From 66084b3ce8e3f33f38cc71358464dffc6c94bb2c Mon Sep 17 00:00:00 2001 From: Ted Johansson Date: Fri, 27 Oct 2023 12:40:49 +0800 Subject: [PATCH] DEV: Remove deprecated PostsController#all_reply_ids (#24128) The PostsController#all_reply_ids was deprecated and marked for removal in 3.0. This PR removes the controller action and the route. --- app/controllers/posts_controller.rb | 7 ------- config/routes.rb | 1 - 2 files changed, 8 deletions(-) diff --git a/app/controllers/posts_controller.rb b/app/controllers/posts_controller.rb index 9078f72cbc9..83c1da0052a 100644 --- a/app/controllers/posts_controller.rb +++ b/app/controllers/posts_controller.rb @@ -310,13 +310,6 @@ class PostsController < ApplicationController render json: post.reply_ids(guardian).to_json 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 - def destroy post = find_post_from_params force_destroy = ActiveModel::Type::Boolean.new.cast(params[:force_destroy]) diff --git a/config/routes.rb b/config/routes.rb index 1d4ffc9f891..530be0fd1cf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1025,7 +1025,6 @@ Discourse::Application.routes.draw do get "posts/by-date/:topic_id/:date" => "posts#by_date" get "posts/:id/reply-history" => "posts#reply_history" get "posts/:id/reply-ids" => "posts#reply_ids" - get "posts/:id/reply-ids/all" => "posts#all_reply_ids" get "posts/:username/deleted" => "posts#deleted_posts", :constraints => { username: RouteFormat.username,