Commit graph

7 commits

Author SHA1 Message Date
Eugen Rochko
fce8464077
Ensure that boolean params in the API are parsed for truthiness ()
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.
2018-03-01 02:47:59 +01:00
nightpool
c235711ffe Refactor /api/web APIs to use the centralized axios instance ()
Also adds the ability to decouple the centralized axios logic from the
state dispatcher
2018-01-08 20:01:33 +01:00
abcang
fcc0795a40 Remove unused function () 2017-12-09 23:37:31 +01:00
Yamagishi Kazutoshi
2edfdab6e6 Don't send Link header when don't know prev and next links () 2017-08-18 10:42:59 +02:00
abcang
e120d09c98 Fix require_user! behavior when not logged in () 2017-08-15 14:14:12 +02:00
Eugen Rochko
1fcdaafa6f Fix webfinger retries ()
* Do not raise unretryable exceptions in ResolveRemoteAccountService

* Removed fatal exceptions from ResolveRemoteAccountService

Exceptions that cannot be retried should not be raised. New exception
class for those that can be retried (Mastodon::UnexpectedResponseError)
2017-07-20 01:59:07 +02:00
Matt Jankowski
73540ffe6b Clean up for api/base controller ()
* Move ApiController to Api/BaseController

* API controllers inherit from Api::BaseController

* Add coverage for various error cases in api/base controller
2017-06-07 20:09:25 +02:00
Renamed from app/controllers/api_controller.rb (Browse further)