Fix lint
This commit is contained in:
parent
0199608b87
commit
210b23cfc7
4 changed files with 5 additions and 5 deletions
|
@ -3,7 +3,7 @@
|
|||
class Admin::SensitiveWord
|
||||
class << self
|
||||
def sensitive?(text, spoiler_text)
|
||||
exposure_text = (spoiler_text.presence || text)
|
||||
exposure_text = spoiler_text.presence || text
|
||||
(spoiler_text.blank? && sensitive_words.any? { |word| include?(text, word) }) ||
|
||||
sensitive_words_for_full.any? { |word| include?(exposure_text, word) }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue