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

This commit is contained in:
usbharu 2023-04-01 10:04:42 +09:00
parent 7d716a4d35
commit 95168782bc
2 changed files with 2 additions and 3 deletions

View File

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

View File

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