diff --git a/src/controllers/api/media.ts b/src/controllers/api/media.ts index a7edef1..b35da9f 100644 --- a/src/controllers/api/media.ts +++ b/src/controllers/api/media.ts @@ -2,7 +2,7 @@ import { AppController } from '@/app.ts'; import { z } from '@/deps.ts'; import { fileSchema } from '@/schema.ts'; import { parseBody } from '@/utils/web.ts'; -import { renderAttachment } from '@/views/attachment.ts'; +import { renderAttachment } from '@/views/mastodon/attachments.ts'; import { uploadFile } from '@/upload.ts'; const mediaBodySchema = z.object({ diff --git a/src/note.ts b/src/note.ts index 92baf52..93689e9 100644 --- a/src/note.ts +++ b/src/note.ts @@ -1,6 +1,6 @@ import { Conf } from '@/config.ts'; import { linkify, linkifyStr, mime, nip19, nip21 } from '@/deps.ts'; -import { type DittoAttachment } from '@/views/attachment.ts'; +import { type DittoAttachment } from '@/views/mastodon/attachments.ts'; linkify.registerCustomProtocol('nostr', true); linkify.registerCustomProtocol('wss'); diff --git a/src/views/attachment.ts b/src/views/mastodon/attachments.ts similarity index 100% rename from src/views/attachment.ts rename to src/views/mastodon/attachments.ts diff --git a/src/views/nostr-to-mastoapi.ts b/src/views/nostr-to-mastoapi.ts index 633df9a..107d469 100644 --- a/src/views/nostr-to-mastoapi.ts +++ b/src/views/nostr-to-mastoapi.ts @@ -11,7 +11,7 @@ import { emojiTagSchema, jsonMediaDataSchema, jsonMetaContentSchema } from '@/sc import { isFollowing, type Nip05, nostrDate, nostrNow, parseNip05 } from '@/utils.ts'; import { verifyNip05Cached } from '@/utils/nip05.ts'; import { unfurlCardCached } from '@/utils/unfurl.ts'; -import { DittoAttachment, renderAttachment } from '@/views/attachment.ts'; +import { DittoAttachment, renderAttachment } from '@/views/mastodon/attachments.ts'; const defaultAvatar = () => Conf.local('/images/avi.png'); const defaultBanner = () => Conf.local('/images/banner.png');