diff --git a/src/db/events.ts b/src/db/events.ts index d00ae2c..be46a1a 100644 --- a/src/db/events.ts +++ b/src/db/events.ts @@ -144,7 +144,7 @@ function getFilterQuery(filter: DittoFilter): EventQuery { : query.leftJoin('users', 'users.pubkey', 'events.pubkey').where('users.pubkey', 'is', null) as typeof query; } - if (filter.with_author) { + if (filter.with_authors) { // get kind 0 event associated with the `pubkey` field of the event query = query .leftJoin( diff --git a/src/filter.ts b/src/filter.ts index 10f0557..82c9be9 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -6,7 +6,7 @@ import type { EventData } from '@/types.ts'; /** Custom filter interface that extends Nostr filters with extra options for Ditto. */ interface DittoFilter extends Filter { local?: boolean; - with_author?: boolean; + with_authors?: boolean; } /** Additional options to apply to the whole subscription. */