Commit Graph

11 Commits (9dcd3388f6f1220d8c4af863ff654520fd935cd5)

Author SHA1 Message Date
ThibG 60bb6ac6f4 Fix webfinger returning wrong status code on malformed or missing param ()
Fixes 
2020-05-14 23:28:06 +02:00
Eugen Rochko ae443cb6ea Fix webfinger response not returning 410 when account is suspended () 2019-09-17 14:58:02 +02:00
Eugen Rochko a2a65f43b2 Fix uncaught error when resource param is missing in Webfinger request () 2019-08-30 02:49:33 +02:00
Eugen Rochko 0ed96e9aee Remove XML version of Webfinger and remove links to Atom feeds ()
Fix 
2019-08-01 19:14:02 +02:00
Eugen Rochko 56f0203c66 Refactor controllers for statuses, accounts, and more () 2019-07-08 12:03:45 +02:00
ThibG 3df85a843c Make host_meta/webfinger replies cacheable (fixes ) ()
* Make host_meta/webfinger replies cacheable (fixes )

Drop common code for handling users and sessions as webfinger queries
are very basic, public APIs.

Also explicitly mark results as cacheable with “expires_in”.

* Add “Vary: Accept” header for caching since content-negociation is used
2017-12-27 18:21:12 +01:00
Eugen Rochko b037fbf9f4 Remove rabl dependency ()
* Remove rabl dependency

* Replicate old Oj configuration
2017-12-06 15:04:49 +09:00
ThibG 810dd86991 Ensure well_known controllers use WEB_DOMAIN by including RoutingHelper ()
This fixes .
2017-06-02 22:21:36 +02:00
Immae ae917bfb23 Allow alternate domains for mastodon handlers () 2017-05-22 15:40:04 +02:00
Matt Jankowski fd9d43b6e2 Improve handling of HTTP_ACCEPT for webfinger ()
This change includes:

- Improve the spec coverage for incoming request to the webfinger action
- For requests without an accept header (ie, what a browser might look like),
  return a JSON response.
- For requests with an explicit format of xml or json, return that format.
- For requests using an accept header, return that format.

Also adds failing spec showing webfinger does not return xml, which covers the
issue described in: https://github.com/tootsuite/mastodon/issues/1983
2017-04-17 19:58:03 +02:00
Matt Jankowski d8789124ae Clean up well-known routes/controllers ()
* Add request spec for host meta route returning xml

* Add routing spec for xrd routes

* Update well-known routes

* Move webfinger and host-meta actions to their own controllers
2017-04-13 13:09:07 +02:00