diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt index 1a795d6c..8993ecda 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt @@ -33,8 +33,7 @@ fun Application.userActivityPubRouting(activityPubService: ActivityPubService, a } ActivityPubService.ActivityType.Undo -> { - call.respond(HttpStatusCode.BadGateway) - TODO() + return@post call.respond(HttpStatusCode.Accepted) } } diff --git a/src/main/kotlin/dev/usbharu/hideout/service/ActivityPubService.kt b/src/main/kotlin/dev/usbharu/hideout/service/ActivityPubService.kt index 438a5f50..bc6c9f17 100644 --- a/src/main/kotlin/dev/usbharu/hideout/service/ActivityPubService.kt +++ b/src/main/kotlin/dev/usbharu/hideout/service/ActivityPubService.kt @@ -15,7 +15,7 @@ class ActivityPubService() { return when(typeAsText){ "Follow" -> ActivityType.Follow "Undo" -> ActivityType.Undo - else -> throw IllegalArgumentException(typeAsText) + else -> ActivityType.Undo } } }