Commit Graph

11 Commits (af2d22f88cf84313e11a5f0b1f3a1170f721967e)

Author SHA1 Message Date
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
Matt Jankowski 1dcfb90202 Clean up api/salmon controller ()
Eugen Rochko bafd22ecf4 Fix - Always respond with 200 to PuSH payloads ()
Fix  - Respond with 201 when Salmon accepted, 400 when unverified
Fix  - Correctly handle confirm_domain? for local accounts
Unify rules for extracting author acct from XML, prefer <email>, fall back
to <name> + <uri> (see also , )
Eugen Rochko 7dea6a23f7 Move Salmon processing to background as well as PuSH
Eugen Rochko fdc17bea58 Fix rubocop issues, introduce usage of frozen literal to improve performance
Eugen Rochko 157f03f8bd No-op for Salmons without body, fail fast if Webfinger does not contain
all required resource links (profile page, salmon, atom feed, magic key)
Eugen Rochko 927333f4f8 Improve code style
Eugen Rochko 10ba09f546 Upgrade to Rails 5.0.0.1
Eugen Rochko 2ba6537f52 Escape PuSH challenge and change subscriptions and salmon APIs to text/plain
Eugen Rochko 3b4e04dc32 Fixing some bugs, adding pending test examples
Eugen Rochko 0e8f59c16f Refactoring Grape API methods into normal controllers & other things