mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[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
This commit is contained in:
@ -79,3 +79,15 @@ type AdminReportInfo struct {
|
||||
// Statuses attached to the report, for context.
|
||||
Statuses []Status `json:"statuses"`
|
||||
}
|
||||
|
||||
// AdminAccountActionRequest models the admin view of an account's details.
|
||||
//
|
||||
// swagger:ignore
|
||||
type AdminAccountActionRequest struct {
|
||||
// Type of the account action. One of disable, silence, suspend.
|
||||
Type string `form:"type" json:"type" xml:"type"`
|
||||
// Text describing why an action was taken.
|
||||
Text string `form:"text" json:"text" xml:"text"`
|
||||
// ID of the account to be acted on.
|
||||
TargetAccountID string `form:"-" json:"-" xml:"-"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user