mirror of https://github.com/usbharu/Hideout.git
fix: レスポンスを返すように
This commit is contained in:
parent
428c096fa6
commit
cdc229a49d
|
@ -25,11 +25,12 @@ fun Application.userActivityPubRouting(activityPubService: ActivityPubService, a
|
||||||
}
|
}
|
||||||
val bodyText = call.receiveText()
|
val bodyText = call.receiveText()
|
||||||
println(bodyText)
|
println(bodyText)
|
||||||
|
call.respond(HttpStatusCode.OK)
|
||||||
when (activityPubService.switchApType(bodyText)) {
|
when (activityPubService.switchApType(bodyText)) {
|
||||||
ActivityPubService.ActivityType.Follow -> {
|
ActivityPubService.ActivityType.Follow -> {
|
||||||
val readValue = Config.configData.objectMapper.readValue<Follow>(bodyText)
|
val readValue = Config.configData.objectMapper.readValue<Follow>(bodyText)
|
||||||
activityPubUserService.receiveFollow(readValue)
|
activityPubUserService.receiveFollow(readValue)
|
||||||
|
return@post
|
||||||
}
|
}
|
||||||
|
|
||||||
ActivityPubService.ActivityType.Undo -> {
|
ActivityPubService.ActivityType.Undo -> {
|
||||||
|
|
Loading…
Reference in New Issue