mirror of
https://github.com/aljazceru/ditto.git
synced 2026-02-23 14:06:58 +01:00
Add MastodonAttachment type
This commit is contained in:
15
src/entities/MastodonAttachment.ts
Normal file
15
src/entities/MastodonAttachment.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export interface MastodonAttachment {
|
||||
id: string;
|
||||
type: string;
|
||||
url: string;
|
||||
preview_url?: string;
|
||||
remote_url?: string | null;
|
||||
description?: string;
|
||||
blurhash?: string | null;
|
||||
meta?: {
|
||||
original?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { MastodonAccount } from '@/entities/MastodonAccount.ts';
|
||||
import { MastodonAttachment } from '@/entities/MastodonAttachment.ts';
|
||||
import { PreviewCard } from '@/entities/PreviewCard.ts';
|
||||
|
||||
export interface MastodonStatus {
|
||||
@@ -24,16 +25,7 @@ export interface MastodonStatus {
|
||||
pinned: boolean;
|
||||
reblog: MastodonStatus | null;
|
||||
application: unknown;
|
||||
media_attachments: {
|
||||
type: string;
|
||||
preview_url?: string;
|
||||
meta?: {
|
||||
original?: {
|
||||
width?: number;
|
||||
height?: number;
|
||||
};
|
||||
};
|
||||
}[];
|
||||
media_attachments: MastodonAttachment[];
|
||||
mentions: unknown[];
|
||||
tags: unknown[];
|
||||
emojis: unknown[];
|
||||
|
||||
Reference in New Issue
Block a user