mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-11 00:14:19 +01:00
views/attachment.ts -> views/mastodon/attachments.ts
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user