mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
with_author --> with_authors
This commit is contained in:
parent
b3c749d266
commit
f9d3240fa8
2 changed files with 2 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ function getFilterQuery(filter: DittoFilter): EventQuery {
|
||||||
: query.leftJoin('users', 'users.pubkey', 'events.pubkey').where('users.pubkey', 'is', null) as typeof query;
|
: 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
|
// get kind 0 event associated with the `pubkey` field of the event
|
||||||
query = query
|
query = query
|
||||||
.leftJoin(
|
.leftJoin(
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import type { EventData } from '@/types.ts';
|
||||||
/** Custom filter interface that extends Nostr filters with extra options for Ditto. */
|
/** Custom filter interface that extends Nostr filters with extra options for Ditto. */
|
||||||
interface DittoFilter<K extends number = number> extends Filter<K> {
|
interface DittoFilter<K extends number = number> extends Filter<K> {
|
||||||
local?: boolean;
|
local?: boolean;
|
||||||
with_author?: boolean;
|
with_authors?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Additional options to apply to the whole subscription. */
|
/** Additional options to apply to the whole subscription. */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue