diff --git a/src/types/post.ts b/src/types/post.ts index 170d1d6..8ac3418 100644 --- a/src/types/post.ts +++ b/src/types/post.ts @@ -30,6 +30,7 @@ export type Attachment = { height?: number; durationSec?: number; posterUrl?: string; + thumbUrl?: string; thumbnailUrl?: string; }; diff --git a/src/utils/postResourceAdapter.ts b/src/utils/postResourceAdapter.ts index 0a3086a..fec65b3 100644 --- a/src/utils/postResourceAdapter.ts +++ b/src/utils/postResourceAdapter.ts @@ -26,7 +26,7 @@ function coverFor(att: Attachment | undefined) { if (att.kind === "image" || att.mime.startsWith("image/")) { return att.thumbnailUrl || att.url; } - return att.posterUrl || att.thumbnailUrl || ""; + return att.posterUrl || att.thumbUrl || att.thumbnailUrl || ""; } export function postToResource(