mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
FIX: whispers should not be revealed in reply to, or reply expansion
FEATURE: mark whisper as experimental FIX: badges should never apply to whispers
This commit is contained in:
@@ -181,7 +181,7 @@ class PostsController < ApplicationController
|
||||
|
||||
def reply_history
|
||||
post = find_post_from_params
|
||||
render_serialized(post.reply_history(params[:max_replies].to_i), PostSerializer)
|
||||
render_serialized(post.reply_history(params[:max_replies].to_i, guardian), PostSerializer)
|
||||
end
|
||||
|
||||
def destroy
|
||||
@@ -237,7 +237,8 @@ class PostsController < ApplicationController
|
||||
# Direct replies to this post
|
||||
def replies
|
||||
post = find_post_from_params
|
||||
render_serialized(post.replies, PostSerializer)
|
||||
replies = post.replies.secured(guardian)
|
||||
render_serialized(replies, PostSerializer)
|
||||
end
|
||||
|
||||
def revisions
|
||||
|
||||
Reference in New Issue
Block a user