mirror of
https://github.com/aljazceru/ditto.git
synced 2026-01-03 21:54:23 +01:00
Delete event.ts, use nostr-tools types
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
import { type AppController } from '@/app.ts';
|
||||
import { getAncestors, getDescendants, getEvent, publish } from '@/client.ts';
|
||||
import { ISO6391, Kind, z } from '@/deps.ts';
|
||||
import { type Event } from '@/event.ts';
|
||||
import { type Event, ISO6391, Kind, z } from '@/deps.ts';
|
||||
import { signEvent } from '@/sign.ts';
|
||||
import { toStatus } from '@/transformers/nostr-to-mastoapi.ts';
|
||||
import { nostrNow, parseBody } from '@/utils.ts';
|
||||
|
||||
@@ -10,14 +10,13 @@ import {
|
||||
} from '@/schemas/nostr.ts';
|
||||
|
||||
import type { AppController } from '@/app.ts';
|
||||
import type { Filter } from '@/deps.ts';
|
||||
import type { SignedEvent } from '@/event.ts';
|
||||
import type { Event, Filter } from '@/deps.ts';
|
||||
|
||||
/** Limit of events returned per-filter. */
|
||||
const FILTER_LIMIT = 100;
|
||||
|
||||
type RelayMsg =
|
||||
| ['EVENT', string, SignedEvent]
|
||||
| ['EVENT', string, Event]
|
||||
| ['NOTICE', string]
|
||||
| ['EOSE', string]
|
||||
| ['OK', string, boolean, string];
|
||||
|
||||
Reference in New Issue
Block a user