Made recommended changes to moderator reports (see #4267)

This commit is contained in:
BrokenEagle
2020-01-21 01:26:52 +00:00
parent 29e8b89c93
commit 5f746c1a34
13 changed files with 21 additions and 17 deletions

View File

@@ -814,6 +814,6 @@ class User < ApplicationRecord
end
def viewable_moderation_reports
!is_moderator? && CurrentUser.is_moderator? ? moderation_reports : []
CurrentUser.is_moderator? ? moderation_reports.recent : []
end
end