parent
47489783bc
commit
eee362b9e0
6 changed files with 20 additions and 7 deletions
|
@ -836,8 +836,9 @@ const startServer = async () => {
|
|||
// custom_filters.action database column, it is an integer
|
||||
// representing a value in an enum defined by Ruby on Rails:
|
||||
//
|
||||
// enum { warn: 0, hide: 1 }
|
||||
filter_action: ['warn', 'hide', 'half_warn'][filter.filter_action],
|
||||
// enum { warn: 0, hide: 1, half_warn: 2 }
|
||||
filter_action: ['warn', 'hide', 'half_warn'][Math.min(filter.filter_action, 1)],
|
||||
filter_action_ex: ['warn', 'hide', 'half_warn'][filter.filter_action],
|
||||
with_quote: filter.with_quote,
|
||||
excludeFollows: filter.exclude_follows,
|
||||
excludeLocalusers: filter.exclude_localusers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue