From 8797963d8cfe8ede6beab878c52f21915e49447d Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Thu, 30 Jan 2025 20:35:46 -0300 Subject: [PATCH] refactor: remote import at the top --- src/controllers/api/ditto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/api/ditto.ts b/src/controllers/api/ditto.ts index 2bf02807..b8476608 100644 --- a/src/controllers/api/ditto.ts +++ b/src/controllers/api/ditto.ts @@ -1,4 +1,5 @@ import { NostrEvent, NostrFilter, NSchema as n } from '@nostrify/nostrify'; +import { generateSecretKey, getPublicKey } from 'nostr-tools'; import { bytesToString, stringToBytes } from '@scure/base'; import { z } from 'zod'; @@ -20,7 +21,6 @@ import { accountFromPubkey } from '@/views/mastodon/accounts.ts'; import { renderAccount } from '@/views/mastodon/accounts.ts'; import { Storages } from '@/storages.ts'; import { updateListAdminEvent } from '@/utils/api.ts'; -import { generateSecretKey, getPublicKey } from 'nostr-tools'; const markerSchema = z.enum(['read', 'write']);