This commit is contained in:
@@ -17,7 +17,7 @@ export async function generateThumbHash(
|
||||
|
||||
if (!imagePath) return;
|
||||
|
||||
let sp;
|
||||
let sp: ReturnType<typeof sharp>;
|
||||
if (imagePath.startsWith("https://") || imagePath.startsWith("http://")) {
|
||||
const res = await fetch(imagePath);
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user