Fixed OAuth restrictions for :api routes. Made auth info dropped for :api routes...
authorIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 22 Apr 2020 15:50:25 +0000 (18:50 +0300)
committerIvan Tashkinov <ivantashkinov@gmail.com>
Wed, 22 Apr 2020 15:50:25 +0000 (18:50 +0300)
commit2958a7d246f40141a88bcb7bdd6a477c4f65f0bc
treec3e5ab53d2d3428b1cb8f78de42710f9c95b7e8c
parentf685cbd30940b3fd92a2f6c8a161729bc2ceaab6
Fixed OAuth restrictions for :api routes. Made auth info dropped for :api routes if OAuth check was neither performed nor explicitly skipped.
14 files changed:
docs/dev.md
lib/pleroma/plugs/oauth_scopes_plug.ex
lib/pleroma/web/mastodon_api/controllers/account_controller.ex
lib/pleroma/web/mastodon_api/controllers/app_controller.ex
lib/pleroma/web/mastodon_api/controllers/custom_emoji_controller.ex
lib/pleroma/web/mastodon_api/controllers/instance_controller.ex
lib/pleroma/web/mastodon_api/controllers/mastodon_api_controller.ex
lib/pleroma/web/mastodon_api/controllers/search_controller.ex
lib/pleroma/web/mastodon_api/controllers/timeline_controller.ex
lib/pleroma/web/pleroma_api/controllers/pleroma_api_controller.ex
lib/pleroma/web/pleroma_api/controllers/scrobble_controller.ex
lib/pleroma/web/router.ex
lib/pleroma/web/twitter_api/twitter_api_controller.ex
lib/pleroma/web/web.ex