diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-17 23:41:28 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 02:19:09 -0600 |
commit | f76c29beee697c8861ba2d479a6f3b2214139829 (patch) | |
tree | 84a8dc37d2e2526f34ce60667010fb97b0b6f722 /app/controllers/api/v1/filters_controller.rb | |
parent | 82f2e265f107c3236fb2e03321d866deba4810c7 (diff) |
Remove unused and incompatable filter settings. These will be re-added in time as they're rewritten to use database-level filtering.
Diffstat (limited to 'app/controllers/api/v1/filters_controller.rb')
-rw-r--r-- | app/controllers/api/v1/filters_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/api/v1/filters_controller.rb b/app/controllers/api/v1/filters_controller.rb index 8194480fa..de2c90dba 100644 --- a/app/controllers/api/v1/filters_controller.rb +++ b/app/controllers/api/v1/filters_controller.rb @@ -35,7 +35,7 @@ class Api::V1::FiltersController < Api::BaseController private def set_filters - @filters = params['all'].to_i == 1 ? current_account.custom_filters : current_account.custom_filters.where(custom_cw: nil) + @filters = params['all'].to_i == 1 ? current_account.custom_filters : [] end def set_filter @@ -43,6 +43,6 @@ class Api::V1::FiltersController < Api::BaseController end def resource_params - params.permit(:phrase, :expires_in, :whole_word, :exclude_media, :media_only, :status_text, :spoiler, :tags, :custom_cw, :override_cw, :desc, :no_desc, context: []) + params.permit(:phrase, :expires_in) end end |