From 6c0550e76fb67deb845e3d0d7f17f416627b56da Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Mon, 22 Nov 2021 09:04:16 +0100 Subject: [PATCH] properly initialize user client module (#319) --- internal/cliactions/server/server.go | 3 +++ internal/cliactions/testrig/testrig.go | 3 +++ 2 files changed, 6 insertions(+) diff --git a/internal/cliactions/server/server.go b/internal/cliactions/server/server.go index 26f3685a2..b77efe07e 100644 --- a/internal/cliactions/server/server.go +++ b/internal/cliactions/server/server.go @@ -29,6 +29,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/api/client/status" "github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" "github.com/superseriousbusiness/gotosocial/internal/api/client/timeline" + userClient "github.com/superseriousbusiness/gotosocial/internal/api/client/user" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/nodeinfo" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/user" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/webfinger" @@ -140,6 +141,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, c *config.Config) err streamingModule := streaming.New(c, processor) favouritesModule := favourites.New(c, processor) blocksModule := blocks.New(c, processor) + userClientModule := userClient.New(c, processor) apis := []api.ClientModule{ // modules with middleware go first @@ -168,6 +170,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, c *config.Config) err streamingModule, favouritesModule, blocksModule, + userClientModule, } for _, m := range apis { diff --git a/internal/cliactions/testrig/testrig.go b/internal/cliactions/testrig/testrig.go index 2cdbfaf52..d13f9e17b 100644 --- a/internal/cliactions/testrig/testrig.go +++ b/internal/cliactions/testrig/testrig.go @@ -30,6 +30,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/api/client/status" "github.com/superseriousbusiness/gotosocial/internal/api/client/streaming" "github.com/superseriousbusiness/gotosocial/internal/api/client/timeline" + userClient "github.com/superseriousbusiness/gotosocial/internal/api/client/user" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/nodeinfo" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/user" "github.com/superseriousbusiness/gotosocial/internal/api/s2s/webfinger" @@ -100,6 +101,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config) err streamingModule := streaming.New(c, processor) favouritesModule := favourites.New(c, processor) blocksModule := blocks.New(c, processor) + userClientModule := userClient.New(c, processor) apis := []api.ClientModule{ // modules with middleware go first @@ -128,6 +130,7 @@ var Start cliactions.GTSAction = func(ctx context.Context, _ *config.Config) err streamingModule, favouritesModule, blocksModule, + userClientModule, } for _, m := range apis {