From 4b9ef7b723add6fe74936ab1361c2b88858ee366 Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Wed, 11 Feb 2026 01:52:25 -0800 Subject: [PATCH] fix(route/smartlink): API returns application/json (#21112) --- lib/routes/smartlink/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/routes/smartlink/index.ts b/lib/routes/smartlink/index.ts index 7d8e05104..61cf7c039 100644 --- a/lib/routes/smartlink/index.ts +++ b/lib/routes/smartlink/index.ts @@ -66,9 +66,7 @@ async function handler(ctx) { const site = ctx.req.param('site'); const link = `https://smartlink.bio/api/instagram/${site}/posts`; const data = await ofetch(link); - // the API returns text/plain as MIME type - // Parse the JSON string into an array - const parsedData = JSON.parse(data); + const parsedData = data; const items = parsedData.map((item) => ({ title: getTitle(item), link: item.smartlink.split('?')[0],