diff options
| author | 2025-07-04 15:30:39 +0200 | |
|---|---|---|
| committer | 2025-07-04 15:30:39 +0200 | |
| commit | 66e1ec14aa07e115580afc8e1399677f3b54eeda (patch) | |
| tree | 54aabccf5c0540abbfdea771745f354e05c8eb1a /testrig/teststructs.go | |
| parent | [bugfix] set correct scope for StatusFavePOSTHandler (#4310) (diff) | |
| download | gotosocial-66e1ec14aa07e115580afc8e1399677f3b54eeda.tar.xz | |
[chore] move status filtering from type converter (#4306)
This finalizes the moving status filtering out of the type converter, and into its own `./internal/filter/` subpkg :)
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4306
Co-authored-by: kim <grufwub@gmail.com>
Co-committed-by: kim <grufwub@gmail.com>
Diffstat (limited to 'testrig/teststructs.go')
| -rw-r--r-- | testrig/teststructs.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/testrig/teststructs.go b/testrig/teststructs.go index a1e241f4e..f002dd079 100644 --- a/testrig/teststructs.go +++ b/testrig/teststructs.go @@ -23,6 +23,7 @@ import ( "code.superseriousbusiness.org/gotosocial/internal/email" "code.superseriousbusiness.org/gotosocial/internal/filter/interaction" "code.superseriousbusiness.org/gotosocial/internal/filter/mutes" + "code.superseriousbusiness.org/gotosocial/internal/filter/status" "code.superseriousbusiness.org/gotosocial/internal/filter/visibility" "code.superseriousbusiness.org/gotosocial/internal/processing" "code.superseriousbusiness.org/gotosocial/internal/processing/common" @@ -51,6 +52,7 @@ type TestStructs struct { WebPushSender *WebPushMockSender TransportController transport.Controller InteractionFilter *interaction.Filter + StatusFilter *status.Filter } func SetupTestStructs( @@ -71,6 +73,7 @@ func SetupTestStructs( visFilter := visibility.NewFilter(&state) muteFilter := mutes.NewFilter(&state) intFilter := interaction.NewFilter(&state) + statusFilter := status.NewFilter(&state) httpClient := NewMockHTTPClient(nil, rMediaPath) httpClient.TestRemotePeople = NewTestFediPeople() @@ -90,6 +93,7 @@ func SetupTestStructs( federator, visFilter, muteFilter, + statusFilter, ) processor := processing.NewProcessor( @@ -105,6 +109,7 @@ func SetupTestStructs( visFilter, muteFilter, intFilter, + statusFilter, ) StartWorkers(&state, processor.Workers()) @@ -122,6 +127,7 @@ func SetupTestStructs( WebPushSender: webPushSender, TransportController: transportController, InteractionFilter: intFilter, + StatusFilter: statusFilter, } } |
