mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Allow admins to expire remote public keys; refetch expired keys on demand (#2183)
This commit is contained in:
@@ -178,6 +178,17 @@ type AdminActionRequest struct {
|
||||
TargetID string `form:"-" json:"-" xml:"-"`
|
||||
}
|
||||
|
||||
// AdminActionResponse models the server
|
||||
// response to an admin action.
|
||||
//
|
||||
// swagger:model adminActionResponse
|
||||
type AdminActionResponse struct {
|
||||
// Internal ID of the action.
|
||||
//
|
||||
// example: 01H9QG6TZ9W5P0402VFRVM17TH
|
||||
ActionID string `json:"action_id"`
|
||||
}
|
||||
|
||||
// MediaCleanupRequest models admin media cleanup parameters
|
||||
//
|
||||
// swagger:parameters mediaCleanup
|
||||
|
@@ -79,3 +79,11 @@ type DomainBlockCreateRequest struct {
|
||||
// public comment on the reason for the domain block
|
||||
PublicComment string `form:"public_comment" json:"public_comment" xml:"public_comment"`
|
||||
}
|
||||
|
||||
// DomainBlockCreateRequest is the form submitted as a POST to /api/v1/admin/domain_keys_expire to expire a domain's public keys.
|
||||
//
|
||||
// swagger:model domainKeysExpireRequest
|
||||
type DomainKeysExpireRequest struct {
|
||||
// hostname/domain to expire keys for.
|
||||
Domain string `form:"domain" json:"domain" xml:"domain"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user