fix: webfingerの判定を修正

This commit is contained in:
usbharu 2023-03-24 17:26:03 +09:00
parent 9e0e4a5ad1
commit 1ff8d48cb5
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ fun Application.wellKnown(userService: UserService) {
status = HttpStatusCode.BadRequest
)
if (uri.startsWith("acct:")) {
if (uri.decodeURLPart().startsWith("acct:")) {
return@get call.respondText("$uri was not found.",status =HttpStatusCode.BadRequest)
}
val accountName = uri.substringBeforeLast("@")