From db5da8a841c13eb673b7cc35d30f404e0b2059f6 Mon Sep 17 00:00:00 2001 From: TerryM Date: Fri, 29 May 2026 17:42:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=85=88=E4=BD=BF=E7=94=A8=20?= =?UTF-8?q?thumbUrl=20=E4=BD=9C=E4=B8=BA=20PDF=20=E5=B0=81=E9=9D=A2?= =?UTF-8?q?=E5=A4=A7=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/types/post.ts | 1 + src/utils/postResourceAdapter.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(