diff options
| author | 2025-03-01 11:37:40 +0100 | |
|---|---|---|
| committer | 2025-03-01 11:37:40 +0100 | |
| commit | 0118e03cdaae5a378d6995cd1a49411a1132b8d7 (patch) | |
| tree | 2acd33b799b79e32bd4d6b0c784e12bae64baddd /internal/api/client/import/import.go | |
| parent | Document importing posts (#3844) (diff) | |
| download | gotosocial-0118e03cdaae5a378d6995cd1a49411a1132b8d7.tar.xz | |
[feature] Implement CSV import for mutes (#3696)
* Implement CSV import for mutes
* update swagger.yaml
* update documentation
* add ImportTestSuite.TestImportMutes
* fix comment typo
Diffstat (limited to 'internal/api/client/import/import.go')
| -rw-r--r-- | internal/api/client/import/import.go | 4 |
1 files changed, 4 insertions, 0 deletions
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 // - |
