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 <gxtan1990@gmail.com>
This commit is contained in:
Jarek Radosz
2022-03-14 15:13:26 +01:00
committed by GitHub
parent 8d5281115e
commit bb153c49a1
+2
View File
@@ -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