From 981d0ee69382e6a08df20c6dc6fe739e8643e423 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 6 Oct 2023 15:19:13 -0500 Subject: [PATCH] views/attachment.ts -> views/mastodon/attachments.ts --- src/controllers/api/media.ts | 2 +- src/note.ts | 2 +- src/views/{attachment.ts => mastodon/attachments.ts} | 0 src/views/nostr-to-mastoapi.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/views/{attachment.ts => mastodon/attachments.ts} (100%) 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');