gotosocial/testrig
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
..
media [performance] media processing improvements (#1288) 2023-01-11 12:13:13 +01:00
config.go [performance] cache media attachments (#1525) 2023-03-03 23:02:23 +00:00
db.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
email.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
federatingdb.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
federator.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
gin.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
log.go [feature] Add a request ID and include it in logs (#1476) 2023-02-17 12:02:29 +01:00
mediahandler.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
oauthserver.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
processor.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00
router.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
storage.go [chore/performance] simplify storage driver to use storage.Storage directly (#1576) 2023-03-01 10:44:54 +01:00
testmodels.go [feature] Client API endpoints + v. basic web view for pinned posts (#1547) 2023-02-25 12:16:30 +00:00
transportcontroller.go [feature] Discover webfinger through host-meta (#1588) 2023-03-08 12:57:41 +00:00
typeconverter.go [chore] Update/add license headers for 2023 (#1304) 2023-01-05 12:43:00 +01:00
util.go [chore] move client/federator workerpools to Workers{} (#1575) 2023-03-01 18:26:53 +00:00