diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt index 57dd3ce5..96db9845 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt @@ -25,11 +25,12 @@ fun Application.userActivityPubRouting(activityPubService: ActivityPubService, a } val bodyText = call.receiveText() println(bodyText) + call.respond(HttpStatusCode.OK) when (activityPubService.switchApType(bodyText)) { ActivityPubService.ActivityType.Follow -> { val readValue = Config.configData.objectMapper.readValue(bodyText) activityPubUserService.receiveFollow(readValue) - + return@post } ActivityPubService.ActivityType.Undo -> {