with_author --> with_authors
This commit is contained in:
parent
b3c749d266
commit
f9d3240fa8
|
@ -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(
|
||||
|
|
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue