Fix domain feeds

This commit is contained in:
Alex Gleason 2025-02-12 22:45:53 -06:00
parent 9ca0b2d21c
commit d991464810
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View file

@ -381,7 +381,7 @@ class EventsDB extends NPostgres {
let query = this.opts.kysely let query = this.opts.kysely
.selectFrom('author_stats') .selectFrom('author_stats')
.select('pubkey') .select('pubkey')
.where('nip05_domain', 'in', [...domains]); .where('nip05_hostname', 'in', [...domains]);
if (filter.authors) { if (filter.authors) {
query = query.where('pubkey', 'in', filter.authors); query = query.where('pubkey', 'in', filter.authors);

View file

@ -61,7 +61,7 @@ export class InternalRelay implements NRelay {
typeof t === 'object' && t.key === 'domain' typeof t === 'object' && t.key === 'domain'
) as { key: 'domain'; value: string } | undefined)?.value; ) as { key: 'domain'; value: string } | undefined)?.value;
if (domain === event.author_stats?.nip05_domain) { if (domain === event.author_stats?.nip05_hostname) {
machina.push(purifyEvent(event)); machina.push(purifyEvent(event));
break; break;
} }