mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-14 05:21:01 +00:00
fix: レスポンスコードを修正
This commit is contained in:
@@ -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<Follow>(bodyText)
|
||||
activityPubUserService.receiveFollow(readValue)
|
||||
return@post
|
||||
return@post call.respond(HttpStatusCode.Created)
|
||||
}
|
||||
|
||||
ActivityPubService.ActivityType.Undo -> {
|
||||
call.respond(HttpStatusCode.BadGateway)
|
||||
TODO()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user