mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-30 23:22:26 -05:00 
			
		
		
		
	[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:
		
					parent
					
						
							
								d73acc70d5
							
						
					
				
			
			
				commit
				
					
						0118e03cda
					
				
			
		
					 7 changed files with 349 additions and 1 deletions
				
			
		|  | @ -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 | ||||
| //	- | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue