mirror of https://github.com/usbharu/Hideout.git
fix: webfingerの判定を修正
This commit is contained in:
parent
9e0e4a5ad1
commit
1ff8d48cb5
|
@ -50,7 +50,7 @@ fun Application.wellKnown(userService: UserService) {
|
||||||
status = HttpStatusCode.BadRequest
|
status = HttpStatusCode.BadRequest
|
||||||
)
|
)
|
||||||
|
|
||||||
if (uri.startsWith("acct:")) {
|
if (uri.decodeURLPart().startsWith("acct:")) {
|
||||||
return@get call.respondText("$uri was not found.",status =HttpStatusCode.BadRequest)
|
return@get call.respondText("$uri was not found.",status =HttpStatusCode.BadRequest)
|
||||||
}
|
}
|
||||||
val accountName = uri.substringBeforeLast("@")
|
val accountName = uri.substringBeforeLast("@")
|
||||||
|
|
Loading…
Reference in New Issue