feat: display Mastodon post media inline (images, video, gif)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-02-14 09:57:00 +08:00
parent f7f2451357
commit bdd42b9d26
6 changed files with 120 additions and 40 deletions

View File

@@ -14,9 +14,12 @@ export interface MastodonStatus {
avatar: string;
};
media_attachments: Array<{
type: string;
url: string;
preview_url: string;
id: string;
type: 'image' | 'video' | 'gifv' | 'audio' | 'unknown';
url: string | null;
preview_url: string | null;
description: string | null;
blurhash?: string | null;
}>;
}