From 45076c0f8ddd7c3dfbdedf3b11d55530eba5c376 Mon Sep 17 00:00:00 2001 From: Charles Zhu Date: Thu, 15 Feb 2024 15:58:51 -0800 Subject: [PATCH] fixed drive link formatting --- getOfficers.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/getOfficers.ts b/getOfficers.ts index de9561d..148fc00 100644 --- a/getOfficers.ts +++ b/getOfficers.ts @@ -70,8 +70,9 @@ export default async function getOfficerData( image = '/profile.png'; } else if (image.includes('drive.google.com')) { const fileID = image.match(/\/file\/d\/(.+?)\//)[1]; - image = `https://drive.google.com/uc?export=download&id=${fileID}`; + image = `https://drive.google.com/thumbnail?id=${fileID}&sz=s1000`; } + // create officer const officer = { id: officerID,