mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2024-09-29 16:30:49 +00:00
Adds some documentation to make sure any NIP05 changes take into account that we are converting the entire json to lowercase.
This commit is contained in:
parent
300a70ce18
commit
f298cc6f13
@ -75,6 +75,9 @@ class Nip05Verifier() {
|
|||||||
fetchNip05Json(
|
fetchNip05Json(
|
||||||
nip05,
|
nip05,
|
||||||
onSuccess = {
|
onSuccess = {
|
||||||
|
// NIP05 usernames are case insensitive, but JSON properties are not
|
||||||
|
// converts the json to lowercase and then tries to access the username via a
|
||||||
|
// lowercase version of the username.
|
||||||
val nip05url = try {
|
val nip05url = try {
|
||||||
mapper.readTree(it.lowercase())
|
mapper.readTree(it.lowercase())
|
||||||
} catch (t: Throwable) {
|
} catch (t: Throwable) {
|
||||||
|
Loading…
Reference in New Issue
Block a user