FIX: Don't include hidden posts in embedded comments

This commit is contained in:
Robin Ward
2016-05-03 15:01:20 -04:00
parent 2cc6efba8c
commit 664f1913c8
2 changed files with 3 additions and 1 deletions

View File

@@ -387,6 +387,7 @@ class TopicView
result = filter_post_types(@topic.posts)
result = result.with_deleted if @guardian.can_see_deleted_posts?
result = @topic.posts.where("user_id IS NOT NULL") if @exclude_deleted_users
result = @topic.posts.where(hidden: false) if @exclude_hidden
result
end