feat: とりあえずundoでもエラーを返さないように

This commit is contained in:
usbharu 2023-04-01 10:04:42 +09:00
parent ab2eae9daa
commit 83b0511b78
Signed by: usbharu
GPG Key ID: 6556747BF94EEBC8
2 changed files with 2 additions and 3 deletions

View File

@ -33,8 +33,7 @@ fun Application.userActivityPubRouting(activityPubService: ActivityPubService, a
}
ActivityPubService.ActivityType.Undo -> {
call.respond(HttpStatusCode.BadGateway)
TODO()
return@post call.respond(HttpStatusCode.Accepted)
}
}

View File

@ -15,7 +15,7 @@ class ActivityPubService() {
return when(typeAsText){
"Follow" -> ActivityType.Follow
"Undo" -> ActivityType.Undo
else -> throw IllegalArgumentException(typeAsText)
else -> ActivityType.Undo
}
}
}