diff options
Diffstat (limited to 'cmd/gotosocial/action/testrig/testrig.go')
-rw-r--r-- | cmd/gotosocial/action/testrig/testrig.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go index d6bc92215..bf2c74f2f 100644 --- a/cmd/gotosocial/action/testrig/testrig.go +++ b/cmd/gotosocial/action/testrig/testrig.go @@ -83,6 +83,13 @@ var Start action.GTSAction = func(ctx context.Context) error { testrig.StandardDBSetup(state.DB, nil) + // Get the instance account + // (we'll need this later). + instanceAccount, err := state.DB.GetInstanceAccount(ctx, "") + if err != nil { + return fmt.Errorf("error retrieving instance account: %w", err) + } + if os.Getenv("GTS_STORAGE_BACKEND") == "s3" { var err error state.Storage, err = storage.NewS3Storage() @@ -225,6 +232,7 @@ var Start action.GTSAction = func(ctx context.Context) error { clientModule.Route(router) metricsModule.Route(router) fileserverModule.Route(router) + fileserverModule.RouteEmojis(router, instanceAccount.ID) wellKnownModule.Route(router) nodeInfoModule.Route(router) activityPubModule.Route(router) |