mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 04:32:25 -05:00 
			
		
		
		
	Blocklist import (#77)
* first steps on importing blocklists * unblock domains properly
This commit is contained in:
		
					parent
					
						
							
								d389e7b150
							
						
					
				
			
			
				commit
				
					
						3568579218
					
				
			
		
					 25 changed files with 547 additions and 170 deletions
				
			
		|  | @ -19,6 +19,8 @@ | |||
| package admin | ||||
| 
 | ||||
| import ( | ||||
| 	"mime/multipart" | ||||
| 
 | ||||
| 	"github.com/sirupsen/logrus" | ||||
| 	apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model" | ||||
| 	"github.com/superseriousbusiness/gotosocial/internal/config" | ||||
|  | @ -31,7 +33,8 @@ import ( | |||
| 
 | ||||
| // Processor wraps a bunch of functions for processing admin actions. | ||||
| type Processor interface { | ||||
| 	DomainBlockCreate(account *gtsmodel.Account, form *apimodel.DomainBlockCreateRequest) (*apimodel.DomainBlock, gtserror.WithCode) | ||||
| 	DomainBlockCreate(account *gtsmodel.Account, domain string, obfuscate bool, publicComment string, privateComment string, subscriptionID string) (*apimodel.DomainBlock, gtserror.WithCode) | ||||
| 	DomainBlocksImport(account *gtsmodel.Account, domains *multipart.FileHeader) ([]*apimodel.DomainBlock, gtserror.WithCode) | ||||
| 	DomainBlocksGet(account *gtsmodel.Account, export bool) ([]*apimodel.DomainBlock, gtserror.WithCode) | ||||
| 	DomainBlockGet(account *gtsmodel.Account, id string, export bool) (*apimodel.DomainBlock, gtserror.WithCode) | ||||
| 	DomainBlockDelete(account *gtsmodel.Account, id string) (*apimodel.DomainBlock, gtserror.WithCode) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue