views/attachment.ts -> views/mastodon/attachments.ts

This commit is contained in:
Alex Gleason 2023-10-06 15:19:13 -05:00
parent 180fdbd1c9
commit 981d0ee693
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
4 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@ import { AppController } from '@/app.ts';
import { z } from '@/deps.ts'; import { z } from '@/deps.ts';
import { fileSchema } from '@/schema.ts'; import { fileSchema } from '@/schema.ts';
import { parseBody } from '@/utils/web.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'; import { uploadFile } from '@/upload.ts';
const mediaBodySchema = z.object({ const mediaBodySchema = z.object({

View File

@ -1,6 +1,6 @@
import { Conf } from '@/config.ts'; import { Conf } from '@/config.ts';
import { linkify, linkifyStr, mime, nip19, nip21 } from '@/deps.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('nostr', true);
linkify.registerCustomProtocol('wss'); linkify.registerCustomProtocol('wss');

View File

@ -11,7 +11,7 @@ import { emojiTagSchema, jsonMediaDataSchema, jsonMetaContentSchema } from '@/sc
import { isFollowing, type Nip05, nostrDate, nostrNow, parseNip05 } from '@/utils.ts'; import { isFollowing, type Nip05, nostrDate, nostrNow, parseNip05 } from '@/utils.ts';
import { verifyNip05Cached } from '@/utils/nip05.ts'; import { verifyNip05Cached } from '@/utils/nip05.ts';
import { unfurlCardCached } from '@/utils/unfurl.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 defaultAvatar = () => Conf.local('/images/avi.png');
const defaultBanner = () => Conf.local('/images/banner.png'); const defaultBanner = () => Conf.local('/images/banner.png');