Correct identity claim for mastodon

This commit is contained in:
heyhoe 2023-03-11 03:46:07 +09:00 committed by GitHub
parent b387808a02
commit a8dc03c477
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -128,7 +128,7 @@ class MastodonIdentity(
if (proofUrl.isBlank()) return null
val path = proofUrl.removePrefix("https://").split("?")[0].split("/")
return MastodonIdentity(path[0], path[1])
return MastodonIdentity("${path[0]}/${path[1]}", path[2])
} catch (e: Exception) {
null
}