Add `account_id` param to `GET /api/v1/notifications` (#10796)
* Add `from_account` to notifications API this adds the ability to filter notifications by the account they originated from * passing a non-existent user should cause none to be returned * Fix codeclimate warnings * fix more codeclimate warnings * make requested changes: * use account id instead of user@domain * name the param `account_id` instead of `from_account` * Don't use `return` in a lambda
Showing
- app/controllers/api/v1/notifications_controller.rb 5 additions, 1 deletionapp/controllers/api/v1/notifications_controller.rb
- app/models/notification.rb 6 additions, 2 deletionsapp/models/notification.rb
- spec/controllers/api/v1/notifications_controller_spec.rb 66 additions, 0 deletionsspec/controllers/api/v1/notifications_controller_spec.rb
Please register or sign in to comment