From 38237913726c79faf8add095d856f7b55f10e6ab Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Sat, 1 Apr 2023 08:46:32 +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=B3=E3=83=BC=E3=83=89=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dev/usbharu/hideout/routing/userActivityPubRouting.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt index 96db9845..00a85622 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/userActivityPubRouting.kt @@ -25,15 +25,15 @@ 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 + return@post call.respond(HttpStatusCode.Created) } ActivityPubService.ActivityType.Undo -> { + call.respond(HttpStatusCode.BadGateway) TODO() } }