summaryrefslogtreecommitdiff
path: root/testrig/federatingdb.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-02-27 13:22:05 +0100
committerLibravatar GitHub <noreply@github.com>2024-02-27 12:22:05 +0000
commit9cadc764b389df970c767608e7a061f3bd777dfa (patch)
treee49218fff3af5800b5305720a04a4f74e7b5c2cb /testrig/federatingdb.go
parent[chore]: Bump github.com/tdewolff/minify/v2 from 2.20.17 to 2.20.18 (#2689) (diff)
downloadgotosocial-9cadc764b389df970c767608e7a061f3bd777dfa.tar.xz
[feature] Add experimental `instance-federation-spam-filter` option (#2685)
* [chore] Move `visibility` to `filter/visibility` * [feature] Add experimental instance-federation-spam-filter option
Diffstat (limited to 'testrig/federatingdb.go')
-rw-r--r--testrig/federatingdb.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/testrig/federatingdb.go b/testrig/federatingdb.go
index d66a82306..41c5a8ae9 100644
--- a/testrig/federatingdb.go
+++ b/testrig/federatingdb.go
@@ -19,12 +19,18 @@ package testrig
import (
"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb"
+ "github.com/superseriousbusiness/gotosocial/internal/filter/spam"
+ "github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
"github.com/superseriousbusiness/gotosocial/internal/state"
"github.com/superseriousbusiness/gotosocial/internal/typeutils"
- "github.com/superseriousbusiness/gotosocial/internal/visibility"
)
// NewTestFederatingDB returns a federating DB with the underlying db
func NewTestFederatingDB(state *state.State) federatingdb.DB {
- return federatingdb.New(state, typeutils.NewConverter(state), visibility.NewFilter(state))
+ return federatingdb.New(
+ state,
+ typeutils.NewConverter(state),
+ visibility.NewFilter(state),
+ spam.NewFilter(state),
+ )
}