diff options
author | 2021-07-06 13:29:11 +0200 | |
---|---|---|
committer | 2021-07-06 13:29:11 +0200 | |
commit | 356857921897c0fb91add7f94e8944dd7e6c57b5 (patch) | |
tree | 2f6d8d42b6eba0ef3bc693c04be712bcef2af1d3 /internal/processing/admin/admin.go | |
parent | Domain block (#76) (diff) | |
download | gotosocial-356857921897c0fb91add7f94e8944dd7e6c57b5.tar.xz |
Blocklist import (#77)
* first steps on importing blocklists
* unblock domains properly
Diffstat (limited to 'internal/processing/admin/admin.go')
-rw-r--r-- | internal/processing/admin/admin.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/processing/admin/admin.go b/internal/processing/admin/admin.go index 8cb1d7f78..fd63d8a10 100644 --- a/internal/processing/admin/admin.go +++ b/internal/processing/admin/admin.go @@ -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) |