terry-staging #9

Merged
terry merged 8 commits from terry-staging into main 2026-05-29 10:17:12 +00:00
2 changed files with 2 additions and 1 deletions
Showing only changes of commit db5da8a841 - Show all commits

View File

@@ -30,6 +30,7 @@ export type Attachment = {
height?: number; height?: number;
durationSec?: number; durationSec?: number;
posterUrl?: string; posterUrl?: string;
thumbUrl?: string;
thumbnailUrl?: string; thumbnailUrl?: string;
}; };

View File

@@ -26,7 +26,7 @@ function coverFor(att: Attachment | undefined) {
if (att.kind === "image" || att.mime.startsWith("image/")) { if (att.kind === "image" || att.mime.startsWith("image/")) {
return att.thumbnailUrl || att.url; return att.thumbnailUrl || att.url;
} }
return att.posterUrl || att.thumbnailUrl || ""; return att.posterUrl || att.thumbUrl || att.thumbnailUrl || "";
} }
export function postToResource( export function postToResource(