mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: don't show contents of hidden posts when quoting the post and when replying as new topic. Also don't allow public to view edit history of hidden posts.
This commit is contained in:
@@ -176,7 +176,7 @@ class PostSerializer < BasicPostSerializer
|
||||
end
|
||||
|
||||
def include_raw?
|
||||
@add_raw.present?
|
||||
@add_raw.present? && (scope.user.try(:staff?) || yours)
|
||||
end
|
||||
|
||||
def include_link_counts?
|
||||
|
||||
Reference in New Issue
Block a user