mirror of
https://github.com/discourse/discourse.git
synced 2026-08-26 13:17:20 -05:00
Merge pull request #1982 from velesin/posts_controller_replies_tests
Adds tests for PostsController#replies.
This commit is contained in:
@@ -128,9 +128,8 @@ class PostsController < ApplicationController
|
||||
end
|
||||
|
||||
def reply_history
|
||||
@post = Post.where(id: params[:id]).first
|
||||
guardian.ensure_can_see!(@post)
|
||||
render_serialized(@post.reply_history, PostSerializer)
|
||||
post = find_post_from_params
|
||||
render_serialized(post.reply_history, PostSerializer)
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
Reference in New Issue
Block a user