From cdc229a49d83566e2ca8765abb85eaeb294d2a2f Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Thu, 30 Mar 2023 18:45:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=AC=E3=82=B9=E3=83=9D=E3=83=B3?= =?UTF-8?q?=E3=82=B9=E3=82=92=E8=BF=94=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/routing/userActivityPubRouting.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -> {