From f9d3240fa8241475210182d2ba29e1bf58f9c176 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 5 Dec 2023 16:52:39 -0600 Subject: [PATCH] with_author --> with_authors --- src/db/events.ts | 2 +- src/filter.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/db/events.ts b/src/db/events.ts index d00ae2c8..be46a1ae 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 10f05572..82c9be9b 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. */