terry-staging #9
@@ -30,6 +30,7 @@ export type Attachment = {
|
||||
height?: number;
|
||||
durationSec?: number;
|
||||
posterUrl?: string;
|
||||
thumbUrl?: string;
|
||||
thumbnailUrl?: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user