[bugfix] Check interaction policies properly on incoming Likes (#3416)

This commit is contained in:
tobi
2024-10-11 15:21:56 +02:00
committed by GitHub
parent cb9008fb41
commit 1c895f314c
4 changed files with 84 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ package testrig
import (
"github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb"
"github.com/superseriousbusiness/gotosocial/internal/filter/interaction"
"github.com/superseriousbusiness/gotosocial/internal/filter/spam"
"github.com/superseriousbusiness/gotosocial/internal/filter/visibility"
"github.com/superseriousbusiness/gotosocial/internal/state"
@@ -31,6 +32,7 @@ func NewTestFederatingDB(state *state.State) federatingdb.DB {
state,
typeutils.NewConverter(state),
visibility.NewFilter(state),
interaction.NewFilter(state),
spam.NewFilter(state),
)
}