summaryrefslogtreecommitdiff
path: root/cmd/gotosocial/action/testrig
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-10-30 18:35:11 +0100
committerLibravatar GitHub <noreply@github.com>2023-10-30 17:35:11 +0000
commit4dc0547dc0e80a4289f46cd8ee5b3aaf855f1f1e (patch)
tree465b66e88a1defdae6c29f86e9e1a3269dc474ff /cmd/gotosocial/action/testrig
parent[chore]: Bump github.com/google/uuid from 1.3.1 to 1.4.0 (#2315) (diff)
downloadgotosocial-4dc0547dc0e80a4289f46cd8ee5b3aaf855f1f1e.tar.xz
[feature] Customizable media cleaner schedule (#2304)
Diffstat (limited to 'cmd/gotosocial/action/testrig')
-rw-r--r--cmd/gotosocial/action/testrig/testrig.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/cmd/gotosocial/action/testrig/testrig.go b/cmd/gotosocial/action/testrig/testrig.go
index 288c5975d..f125cd119 100644
--- a/cmd/gotosocial/action/testrig/testrig.go
+++ b/cmd/gotosocial/action/testrig/testrig.go
@@ -32,6 +32,7 @@ import (
"github.com/superseriousbusiness/gotosocial/cmd/gotosocial/action"
"github.com/superseriousbusiness/gotosocial/internal/api"
apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util"
+ "github.com/superseriousbusiness/gotosocial/internal/cleaner"
"github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/gotosocial"
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
@@ -211,11 +212,9 @@ var Start action.GTSAction = func(ctx context.Context) error {
activityPubModule.RoutePublicKey(router)
webModule.Route(router)
- gts, err := gotosocial.NewServer(state.DB, router, federator, mediaManager)
- if err != nil {
- return fmt.Errorf("error creating gotosocial service: %s", err)
- }
+ cleaner := cleaner.New(&state)
+ gts := gotosocial.NewServer(state.DB, router, cleaner)
if err := gts.Start(ctx); err != nil {
return fmt.Errorf("error starting gotosocial service: %s", err)
}