mastodon/app/controllers/api/v1
Paul Woolcock 0c933c1b8c 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
2019-05-21 13:28:49 +02:00
..
accounts
…
apps
…
instances
…
lists
…
polls
…
push
…
statuses
…
timelines
…
accounts_controller.rb
…
apps_controller.rb
…
blocks_controller.rb
…
conversations_controller.rb
…
custom_emojis_controller.rb
…
domain_blocks_controller.rb
…
endorsements_controller.rb
…
favourites_controller.rb
…
filters_controller.rb
…
follow_requests_controller.rb
…
follows_controller.rb
…
instances_controller.rb
…
lists_controller.rb
…
media_controller.rb
…
mutes_controller.rb
…
notifications_controller.rb
…
polls_controller.rb
…
preferences_controller.rb
…
reports_controller.rb
…
scheduled_statuses_controller.rb
…
search_controller.rb
…
statuses_controller.rb
…
streaming_controller.rb
…
suggestions_controller.rb
…