rename New___(string) int {} signature functions to Parse___(string) int {}

This commit is contained in:
kim 2024-11-27 17:59:50 +00:00
commit 32d5bcf32d
8 changed files with 180 additions and 26 deletions

View file

@ -40,7 +40,7 @@ func (p *Processor) AccountAction(
return "", gtserror.NewErrorInternalError(err)
}
switch gtsmodel.NewAdminActionType(request.Type) {
switch gtsmodel.ParseAdminActionType(request.Type) {
case gtsmodel.AdminActionSuspend:
return p.accountActionSuspend(ctx, adminAcct, targetAcct, request.Text)