summaryrefslogtreecommitdiff
path: root/internal/processing/account/account.go
diff options
context:
space:
mode:
authorLibravatar Tobi Smethurst <31960611+tsmethurst@users.noreply.github.com>2021-07-06 13:29:11 +0200
committerLibravatar GitHub <noreply@github.com>2021-07-06 13:29:11 +0200
commit356857921897c0fb91add7f94e8944dd7e6c57b5 (patch)
tree2f6d8d42b6eba0ef3bc693c04be712bcef2af1d3 /internal/processing/account/account.go
parentDomain block (#76) (diff)
downloadgotosocial-356857921897c0fb91add7f94e8944dd7e6c57b5.tar.xz
Blocklist import (#77)
* first steps on importing blocklists * unblock domains properly
Diffstat (limited to 'internal/processing/account/account.go')
-rw-r--r--internal/processing/account/account.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/internal/processing/account/account.go b/internal/processing/account/account.go
index 442b6fa9f..efdac5d3e 100644
--- a/internal/processing/account/account.go
+++ b/internal/processing/account/account.go
@@ -40,7 +40,8 @@ type Processor interface {
// Create processes the given form for creating a new account, returning an oauth token for that account if successful.
Create(applicationToken oauth2.TokenInfo, application *gtsmodel.Application, form *apimodel.AccountCreateRequest) (*apimodel.Token, error)
// Delete deletes an account, and all of that account's statuses, media, follows, notifications, etc etc etc.
- Delete(account *gtsmodel.Account, deletedBy string) error
+ // The origin passed here should be either the ID of the account doing the delete (can be itself), or the ID of a domain block.
+ Delete(account *gtsmodel.Account, origin string) error
// Get processes the given request for account information.
Get(requestingAccount *gtsmodel.Account, targetAccountID string) (*apimodel.Account, error)
// Update processes the update of an account with the given form