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("@")