gotosocial/internal/transport
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
..
context_test.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
context.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
controller.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
deliver.go [bugfix] internal server error on search not found (#1590) 2023-03-06 10:38:43 +01:00
dereference.go [bugfix] internal server error on search not found (#1590) 2023-03-06 10:38:43 +01:00
derefinstance.go [bugfix] internal server error on search not found (#1590) 2023-03-06 10:38:43 +01:00
derefmedia.go [bugfix] internal server error on search not found (#1590) 2023-03-06 10:38:43 +01:00
finger_test.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
finger.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
signing.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
transport_test.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
transport.go [bugfix] internal server error on search not found (#1590) 2023-03-06 10:38:43 +01:00