diff --git a/app/models/about.rb b/app/models/about.rb index dd87169ecee..a59a73a019f 100644 --- a/app/models/about.rb +++ b/app/models/about.rb @@ -35,14 +35,12 @@ class About def moderators @moderators ||= User.where(moderator: true, admin: false) - .where.not(id: Discourse::SYSTEM_USER_ID) + .where("id > 0") .order(:username_lower) end def admins - @admins ||= User.where(admin: true) - .where.not(id: Discourse::SYSTEM_USER_ID) - .order(:username_lower) + @admins ||= User.where(admin: true).where("id > 0").order(:username_lower) end def stats