terry-staging #9
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user