gotosocial/internal/api
Daenney e397272fe8
[feature] Discover webfinger through host-meta (#1588)
* [feature] Discover webfinger through host-meta

This implements a fallback for discovering the webfinger endpoint in
case the /.well-known/webfinger endpoint wasn't properly redirected.
Some instances do this because the recommendation used to be to use
host-meta for the webfinger redirect in the before times.

Closes #1558.

* [bug] Ensure we only ever update cache on success

* [chore] Move finger tests to their own place

This adds a test suite for transport and moves the finger cache tests
into there instead of abusing the search test suite.

* [chore] cleanup the test a bit more

We don't really need a separate function for the oddly located webfinger
response as we check the full URL string anyway

* Address review comments

* [chore] update config example

* [chore] access DB only through state in controller
2023-03-08 12:57:41 +00:00
..
activitypub [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
auth [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
client [feature] Add support for profile fields (#1483) 2023-03-06 10:30:19 +01:00
fileserver [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
model [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
nodeinfo [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
util [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
wellknown [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
activitypub.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
auth.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
client.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
fileserver.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
nodeinfo.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00
wellknown.go [chore] Deinterface processor and subprocessors (#1501) 2023-02-22 16:05:26 +01:00