diff options
author | 2022-03-19 12:01:40 +0100 | |
---|---|---|
committer | 2022-03-19 12:01:40 +0100 | |
commit | 55ad6dee716112e1a6c95cd53af0680ab3e8679a (patch) | |
tree | 37fe44052801ca3178a9a1c19a0a1ddddbbda96d /internal/processing/processor.go | |
parent | [feature] Federate local account deletion (#431) (diff) | |
download | gotosocial-55ad6dee716112e1a6c95cd53af0680ab3e8679a.tar.xz |
[feature] Admin account actions (#432)
* add accountAction to the admin API
* model admin account action
* add admin account action to the processor
* add migration for new AdminAccountActions table
* fix accounts admin path
* Update swagger docs
Diffstat (limited to 'internal/processing/processor.go')
-rw-r--r-- | internal/processing/processor.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/processing/processor.go b/internal/processing/processor.go index 973b44084..50f4af492 100644 --- a/internal/processing/processor.go +++ b/internal/processing/processor.go @@ -97,6 +97,8 @@ type Processor interface { // AccountBlockRemove handles the removal of a block from authed account to target account, either remote or local. AccountBlockRemove(ctx context.Context, authed *oauth.Auth, targetAccountID string) (*apimodel.Relationship, gtserror.WithCode) + // AdminAccountAction handles the creation/execution of an action on an account. + AdminAccountAction(ctx context.Context, authed *oauth.Auth, form *apimodel.AdminAccountActionRequest) gtserror.WithCode // AdminEmojiCreate handles the creation of a new instance emoji by an admin, using the given form. AdminEmojiCreate(ctx context.Context, authed *oauth.Auth, form *apimodel.EmojiCreateRequest) (*apimodel.Emoji, gtserror.WithCode) // AdminDomainBlockCreate handles the creation of a new domain block by an admin, using the given form. |