parent
98753287ac
commit
2c5c068365
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@ class REST::FilterSerializer < ActiveModel::Serializer
|
||||||
end
|
end
|
||||||
|
|
||||||
def filter_action
|
def filter_action
|
||||||
return :hide if object.half_warn_action?
|
return :warn if object.half_warn_action?
|
||||||
|
|
||||||
object.filter_action
|
object.filter_action
|
||||||
end
|
end
|
||||||
|
|
|
@ -837,7 +837,7 @@ const startServer = async () => {
|
||||||
// representing a value in an enum defined by Ruby on Rails:
|
// representing a value in an enum defined by Ruby on Rails:
|
||||||
//
|
//
|
||||||
// enum { warn: 0, hide: 1, half_warn: 2 }
|
// enum { warn: 0, hide: 1, half_warn: 2 }
|
||||||
filter_action: ['warn', 'hide', 'half_warn'][Math.min(filter.filter_action, 1)],
|
filter_action: filter.filter_action === 2 ? 'warn' : ['warn', 'hide', 'half_warn'][filter.filter_action],
|
||||||
filter_action_ex: ['warn', 'hide', 'half_warn'][filter.filter_action],
|
filter_action_ex: ['warn', 'hide', 'half_warn'][filter.filter_action],
|
||||||
with_quote: filter.with_quote,
|
with_quote: filter.with_quote,
|
||||||
excludeFollows: filter.exclude_follows,
|
excludeFollows: filter.exclude_follows,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue