mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: If a user is deleted, don't break embedded comments for admins.
This commit is contained in:
@@ -307,6 +307,7 @@ class TopicView
|
||||
def unfiltered_posts
|
||||
result = @topic.posts
|
||||
result = result.with_deleted if @user.try(:staff?)
|
||||
result = @topic.posts.where("user_id IS NOT NULL") if @exclude_deleted_users
|
||||
result
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user