with_author --> with_authors

This commit is contained in:
Alex Gleason 2023-12-05 16:52:39 -06:00
parent b3c749d266
commit f9d3240fa8
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View File

@ -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(

View File

@ -6,7 +6,7 @@ import type { EventData } from '@/types.ts';
/** Custom filter interface that extends Nostr filters with extra options for Ditto. */
interface DittoFilter<K extends number = number> extends Filter<K> {
local?: boolean;
with_author?: boolean;
with_authors?: boolean;
}
/** Additional options to apply to the whole subscription. */