From 1ff8d48cb5c9ee221b36c8d77ce59eb758305bca Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 24 Mar 2023 17:26:03 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20webfinger=E3=81=AE=E5=88=A4=E5=AE=9A?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/dev/usbharu/hideout/routing/WellKnownRouting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/routing/WellKnownRouting.kt b/src/main/kotlin/dev/usbharu/hideout/routing/WellKnownRouting.kt index 9db2d597..c3b274b1 100644 --- a/src/main/kotlin/dev/usbharu/hideout/routing/WellKnownRouting.kt +++ b/src/main/kotlin/dev/usbharu/hideout/routing/WellKnownRouting.kt @@ -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("@")