From 0118e03cdaae5a378d6995cd1a49411a1132b8d7 Mon Sep 17 00:00:00 2001 From: Xavier Vello Date: Sat, 1 Mar 2025 11:37:40 +0100 Subject: [feature] Implement CSV import for mutes (#3696) * Implement CSV import for mutes * update swagger.yaml * update documentation * add ImportTestSuite.TestImportMutes * fix comment typo --- internal/api/client/import/import.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/api/client/import/import.go') diff --git a/internal/api/client/import/import.go b/internal/api/client/import/import.go index c3908625b..8e2dde0c9 100644 --- a/internal/api/client/import/import.go +++ b/internal/api/client/import/import.go @@ -25,6 +25,7 @@ import ( "strings" "github.com/gin-gonic/gin" + apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" apiutil "github.com/superseriousbusiness/gotosocial/internal/api/util" "github.com/superseriousbusiness/gotosocial/internal/gtserror" @@ -38,6 +39,7 @@ const ( var types = []string{ "following", "blocks", + "mutes", } var modes = []string{ @@ -93,6 +95,8 @@ func (m *Module) Route(attachHandler func(method string, path string, f ...gin.H // // - `following` - accounts to follow. // - `blocks` - accounts to block. +// - `mutes` - accounts to mute. +// // type: string // required: true // - -- cgit v1.2.3