fix: レスポンスを返すように

This commit is contained in:
usbharu 2023-03-30 18:45:18 +09:00
parent 428c096fa6
commit cdc229a49d
1 changed files with 2 additions and 1 deletions

View File

@ -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<Follow>(bodyText)
activityPubUserService.receiveFollow(readValue)
return@post
}
ActivityPubService.ActivityType.Undo -> {