mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 13:52:25 -05:00
[feature] Allow admins to expire remote public keys; refetch expired keys on demand (#2183)
This commit is contained in:
parent
2cac5a4613
commit
4b594516ec
23 changed files with 841 additions and 117 deletions
|
|
@ -72,6 +72,7 @@ const (
|
|||
AdminActionUnsilence
|
||||
AdminActionSuspend
|
||||
AdminActionUnsuspend
|
||||
AdminActionExpireKeys
|
||||
)
|
||||
|
||||
func (t AdminActionType) String() string {
|
||||
|
|
@ -88,6 +89,8 @@ func (t AdminActionType) String() string {
|
|||
return "suspend"
|
||||
case AdminActionUnsuspend:
|
||||
return "unsuspend"
|
||||
case AdminActionExpireKeys:
|
||||
return "expire-keys"
|
||||
default:
|
||||
return "unknown"
|
||||
}
|
||||
|
|
@ -107,6 +110,8 @@ func NewAdminActionType(in string) AdminActionType {
|
|||
return AdminActionSuspend
|
||||
case "unsuspend":
|
||||
return AdminActionUnsuspend
|
||||
case "expire-keys":
|
||||
return AdminActionExpireKeys
|
||||
default:
|
||||
return AdminActionUnknown
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue