mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Refetch nip05 if last_verified is null
This commit is contained in:
parent
8386fe7609
commit
41419e84dc
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ async function updateAuthorData(event: NostrEvent, signal: AbortSignal): Promise
|
||||||
const eventNewer = !lastVerified || event.created_at > lastVerified;
|
const eventNewer = !lastVerified || event.created_at > lastVerified;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (nip05 !== authorStats?.nip05 && eventNewer) {
|
if (nip05 !== authorStats?.nip05 && eventNewer || !lastVerified) {
|
||||||
if (nip05) {
|
if (nip05) {
|
||||||
const tld = tldts.parse(nip05);
|
const tld = tldts.parse(nip05);
|
||||||
if (tld.isIcann && !tld.isIp && !tld.isPrivate) {
|
if (tld.isIcann && !tld.isIp && !tld.isPrivate) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue