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 -> {
|
ActivityPubService.ActivityType.Undo -> {
|
||||||
call.respond(HttpStatusCode.BadGateway)
|
return@post call.respond(HttpStatusCode.Accepted)
|
||||||
TODO()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@ class ActivityPubService() {
|
||||||
return when(typeAsText){
|
return when(typeAsText){
|
||||||
"Follow" -> ActivityType.Follow
|
"Follow" -> ActivityType.Follow
|
||||||
"Undo" -> ActivityType.Undo
|
"Undo" -> ActivityType.Undo
|
||||||
else -> throw IllegalArgumentException(typeAsText)
|
else -> ActivityType.Undo
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue