nip05 domain must have a dot.

This commit is contained in:
fiatjaf 2023-03-02 08:41:06 -03:00
parent 049f183d27
commit 63cbc4133a
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1
1 changed files with 1 additions and 0 deletions

View File

@ -37,6 +37,7 @@ export async function queryProfile(
}
if (!name.match(/^[A-Za-z0-9-_]+$/)) return null
if (!domain.includes('.')) return null
let res
try {