add default

This commit is contained in:
Dan Anglin 2024-06-09 23:26:43 +01:00
parent 0d059c5933
commit 791a46d0db
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638

View file

@ -61,10 +61,10 @@ func (a *AcceptOrRejectExecutor) acceptOrRejectFollowRequest(gtsClient *client.C
return a.acceptFollowRequest(gtsClient, accountID)
case "reject":
return a.rejectFollowRequest(gtsClient, accountID)
}
default:
return nil
}
}
func (a *AcceptOrRejectExecutor) acceptFollowRequest(gtsClient *client.Client, accountID string) error {
if err := gtsClient.AcceptFollowRequest(accountID); err != nil {