mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Fix domain feeds
This commit is contained in:
parent
9ca0b2d21c
commit
d991464810
2 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue