mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-20 18:51:12 +02:00
Merge pull request #251 from h3y6e/patch-1
Correct identity claim for mastodon
This commit is contained in:
@@ -128,7 +128,7 @@ class MastodonIdentity(
|
|||||||
if (proofUrl.isBlank()) return null
|
if (proofUrl.isBlank()) return null
|
||||||
val path = proofUrl.removePrefix("https://").split("?")[0].split("/")
|
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) {
|
} catch (e: Exception) {
|
||||||
null
|
null
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user