diff options
author | 2022-03-15 16:12:35 +0100 | |
---|---|---|
committer | 2022-03-15 16:12:35 +0100 | |
commit | 532c4cc6978a7fe707373106eebade237c89693a (patch) | |
tree | 937bf0a44ef2a8d8d366786693decf2c65b20db5 /internal/api/model | |
parent | [performance] Add dereference shortcuts to avoid making http calls to self (#... (diff) | |
download | gotosocial-532c4cc6978a7fe707373106eebade237c89693a.tar.xz |
[feature] Federate local account deletion (#431)
* add account delete to API
* model account delete request
* add AccountDeleteLocal
* federate local account deletes
* add DeleteLocal
* update transport (controller) to allow shortcuts
* delete logic + testing
* update swagger docs
* more tests + fixes
Diffstat (limited to 'internal/api/model')
-rw-r--r-- | internal/api/model/account.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/internal/api/model/account.go b/internal/api/model/account.go index 712640367..4ff229589 100644 --- a/internal/api/model/account.go +++ b/internal/api/model/account.go @@ -187,3 +187,14 @@ type AccountFollowRequest struct { // Notify when this account posts. Notify *bool `form:"notify" json:"notify" xml:"notify"` } + +// AccountDeleteRequest models a request to delete an account. +// +// swagger:ignore +type AccountDeleteRequest struct { + // Password of the account's user, for confirmation. + Password string `form:"password" json:"password" xml:"password"` + // The origin of the delete account request. + // Can be the ID of the account owner, or the ID of an admin account. + DeleteOriginID string `form:"-" json:"-" xml:"-"` +} |