mirror of https://github.com/usbharu/Hideout.git
feat: とりあえずundoでもエラーを返さないように
This commit is contained in:
parent
7d716a4d35
commit
95168782bc
|
@ -33,8 +33,7 @@ fun Application.userActivityPubRouting(activityPubService: ActivityPubService, a
|
|||
}
|
||||
|
||||
ActivityPubService.ActivityType.Undo -> {
|
||||
call.respond(HttpStatusCode.BadGateway)
|
||||
TODO()
|
||||
return@post call.respond(HttpStatusCode.Accepted)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ class ActivityPubService() {
|
|||
return when(typeAsText){
|
||||
"Follow" -> ActivityType.Follow
|
||||
"Undo" -> ActivityType.Undo
|
||||
else -> throw IllegalArgumentException(typeAsText)
|
||||
else -> ActivityType.Undo
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue