This commit is contained in:
1 file changed
+3
-2
@@ -14,8 +14,9 @@ export const bestImageURL = (
|
|||||||
compact: boolean = true,
|
compact: boolean = true,
|
||||||
width: number = 1024,
|
width: number = 1024,
|
||||||
) => {
|
) => {
|
||||||
if (post.thumbnail_url) return optimizeImageURL(post.thumbnail_url, width)
|
if (post.url) return optimizeImageURL(post.url, width)
|
||||||
else if (post.url) return optimizeImageURL(post.url, width)
|
else if (post.thumbnail_url)
|
||||||
|
return optimizeImageURL(post.thumbnail_url, width)
|
||||||
|
|
||||||
return post.url ?? ''
|
return post.url ?? ''
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user