Fix irreversible and whole_word parameters handling in /api/v1/filters (#21988)
Fixes #21965
This commit is contained in:
@@ -54,7 +54,7 @@ class CustomFilter < ApplicationRecord
|
||||
end
|
||||
|
||||
def irreversible=(value)
|
||||
self.action = value ? :hide : :warn
|
||||
self.action = ActiveModel::Type::Boolean.new.cast(value) ? :hide : :warn
|
||||
end
|
||||
|
||||
def irreversible?
|
||||
|
Reference in New Issue
Block a user