mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
DEV: Deprecate /posts/:id/reply-ids/all (#16136)
* DEV: Deprecate /posts/:id/reply-ids/all It was added ined4c0c4a63
and its only use was removed inb58867b6e9
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:
parent
8d5281115e
commit
bb153c49a1
@ -309,6 +309,8 @@ class PostsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def all_reply_ids
|
def all_reply_ids
|
||||||
|
Discourse.deprecate("/posts/:id/reply-ids/all is deprecated.", drop_from: "3.0")
|
||||||
|
|
||||||
post = find_post_from_params
|
post = find_post_from_params
|
||||||
render json: post.reply_ids(guardian, only_replies_to_single_post: false).to_json
|
render json: post.reply_ids(guardian, only_replies_to_single_post: false).to_json
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user