diff options
| author | 2023-03-08 13:57:41 +0100 | |
|---|---|---|
| committer | 2023-03-08 12:57:41 +0000 | |
| commit | e397272fe8550e4f81958d5d00bf3233e1bd0bfc (patch) | |
| tree | 156bc2ebc49563a1ed3decd2171bf2da21b071cf /cmd | |
| parent | [chore] Update uptrace/bun and modernc/sqlite dependencies (#1598) (diff) | |
| download | gotosocial-e397272fe8550e4f81958d5d00bf3233e1bd0bfc.tar.xz | |
[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
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/gotosocial/action/server/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/gotosocial/action/server/server.go b/cmd/gotosocial/action/server/server.go index bc56e21f0..5f45ecd3f 100644 --- a/cmd/gotosocial/action/server/server.go +++ b/cmd/gotosocial/action/server/server.go @@ -110,7 +110,7 @@ var Start action.GTSAction = func(ctx context.Context) error { oauthServer := oauth.New(ctx, dbService) typeConverter := typeutils.NewConverter(dbService) federatingDB := federatingdb.New(&state, typeConverter) - transportController := transport.NewController(dbService, federatingDB, &federation.Clock{}, client) + transportController := transport.NewController(&state, federatingDB, &federation.Clock{}, client) federator := federation.NewFederator(dbService, federatingDB, transportController, typeConverter, mediaManager) // decide whether to create a noop email sender (won't send emails) or a real one |
