Changed safe mode error message for Gold+ users

- Made explicit the error messages and their order
- Banned takes priority, then Gold+, then Safe
- Made the groups exclusive of each other
This commit is contained in:
BrokenEagle
2017-11-23 13:07:01 -08:00
parent 5f39a8b4b2
commit 839f0f653f
4 changed files with 39 additions and 11 deletions

View File

@@ -87,11 +87,15 @@ module PostSets
end
def banned_posts
posts.select(&:is_banned?)
posts.select { |p| p.banblocked? }
end
def censored_posts
hidden_posts - banned_posts
posts.select { |p| p.levelblocked? && !p.banblocked? }
end
def safe_posts
posts.select { |p| p.safeblocked? && !p.levelblocked? && !p.banblocked? }
end
def use_sequential_paginator?