mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
refactor: stop fetching author and set nip05_last_verified_at to null
This commit is contained in:
parent
9e726baa2a
commit
e549a9d34a
1 changed files with 2 additions and 7 deletions
|
|
@ -288,17 +288,12 @@ export class DittoRelayStore implements NRelay {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const [author] = await relay.query([{ kinds: [0], authors: [authorId] }], { signal });
|
|
||||||
if (!author) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
await db.kysely.updateTable('author_stats').set({
|
await db.kysely.updateTable('author_stats').set({
|
||||||
nip05: null,
|
nip05: null,
|
||||||
nip05_domain: null,
|
nip05_domain: null,
|
||||||
nip05_hostname: null,
|
nip05_hostname: null,
|
||||||
nip05_last_verified_at: author.created_at,
|
nip05_last_verified_at: null,
|
||||||
}).where('pubkey', '=', author.pubkey)
|
}).where('pubkey', '=', authorId)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue