Merge pull request #251 from h3y6e/patch-1

Correct identity claim for mastodon
This commit is contained in:
Vitor Pamplona
2023-03-12 10:25:38 -04:00
committed by GitHub

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
}