mirror of https://github.com/usbharu/Hideout.git
fix: webfingerの判定を修正
This commit is contained in:
parent
90da900028
commit
a442f5ae33
|
@ -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("@")
|
||||
|
|
Loading…
Reference in New Issue