Ensure that boolean params in the API are parsed for truthiness (#6575)
Use Rails smart boolean cast to account for values such as "f", "0", "false", etc. Previously, if a param was present in the request, it would count as true.
Showing
- app/controllers/api/base_controller.rb 4 additions, 0 deletionsapp/controllers/api/base_controller.rb
- app/controllers/api/v1/accounts/search_controller.rb 0 additions, 4 deletionsapp/controllers/api/v1/accounts/search_controller.rb
- app/controllers/api/v1/accounts/statuses_controller.rb 3 additions, 3 deletionsapp/controllers/api/v1/accounts/statuses_controller.rb
- app/controllers/api/v1/accounts_controller.rb 3 additions, 3 deletionsapp/controllers/api/v1/accounts_controller.rb
- app/controllers/api/v1/search_controller.rb 1 addition, 5 deletionsapp/controllers/api/v1/search_controller.rb
- app/controllers/api/v1/timelines/public_controller.rb 1 addition, 1 deletionapp/controllers/api/v1/timelines/public_controller.rb
- app/controllers/api/v1/timelines/tag_controller.rb 1 addition, 1 deletionapp/controllers/api/v1/timelines/tag_controller.rb
Please register or sign in to comment