mirror of
https://github.com/usbharu/Hideout.git
synced 2026-09-10 11:14:58 +00:00
fix: レスポンスを返すように
This commit is contained in:
@@ -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 -> {
|
||||
|
||||
Reference in New Issue
Block a user