[feature] Implement CSV import for mutes (#3696)

* Implement CSV import for mutes

* update swagger.yaml

* update documentation

* add ImportTestSuite.TestImportMutes

* fix comment typo
This commit is contained in:
Xavier Vello
2025-03-01 11:37:40 +01:00
committed by GitHub
parent d73acc70d5
commit 0118e03cda
7 changed files with 349 additions and 1 deletions

View File

@ -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
// -