mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
Remove unused DittoFilter interface
This commit is contained in:
parent
045eb4e1d6
commit
02e284f3aa
3 changed files with 1 additions and 9 deletions
|
|
@ -586,7 +586,7 @@ const zapController: AppController = async (c) => {
|
|||
let lnurl: undefined | string;
|
||||
|
||||
if (status_id) {
|
||||
target = await getEvent(status_id, { kind: 1, relations: ['author'], signal });
|
||||
target = await getEvent(status_id, { kind: 1, signal });
|
||||
const author = target?.author;
|
||||
const meta = n.json().pipe(n.metadata()).catch({}).parse(author?.content);
|
||||
lnurl = getLnurl(meta);
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
import { NostrEvent } from '@nostrify/nostrify';
|
||||
import { DittoEvent } from '@/interfaces/DittoEvent.ts';
|
||||
|
||||
/** Additional properties that may be added by Ditto to events. */
|
||||
export type DittoRelation = Exclude<keyof DittoEvent, keyof NostrEvent>;
|
||||
|
|
@ -3,7 +3,6 @@ import { NostrEvent, NostrFilter, NStore } from '@nostrify/nostrify';
|
|||
import { Conf } from '@/config.ts';
|
||||
import { Storages } from '@/storages.ts';
|
||||
import { type DittoEvent } from '@/interfaces/DittoEvent.ts';
|
||||
import { type DittoRelation } from '@/interfaces/DittoFilter.ts';
|
||||
import { hydrateEvents } from '@/storages/hydrate.ts';
|
||||
import { fallbackAuthor } from '@/utils.ts';
|
||||
import { findReplyTag, getTagSet } from '@/utils/tags.ts';
|
||||
|
|
@ -13,8 +12,6 @@ interface GetEventOpts {
|
|||
signal?: AbortSignal;
|
||||
/** Event kind. */
|
||||
kind?: number;
|
||||
/** @deprecated Relations to include on the event. */
|
||||
relations?: DittoRelation[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue