From be20edd0cdab87e9fc04362125e5201eddfb3d71 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Mon, 6 Apr 2026 15:05:46 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=89=B4=EC=8A=A4=20=EB=A6=AC=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=20=E2=80=94=20ai=5Fsummary=20=EC=9A=B0=EC=84=A0=20?= =?UTF-8?q?=ED=91=9C=EC=8B=9C=20(=EC=97=86=EC=9C=BC=EB=A9=B4=20extracted?= =?UTF-8?q?=5Ftext=20fallback)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/routes/news/+page.svelte | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/routes/news/+page.svelte b/frontend/src/routes/news/+page.svelte index f8b7bef..6c0b90c 100644 --- a/frontend/src/routes/news/+page.svelte +++ b/frontend/src/routes/news/+page.svelte @@ -178,8 +178,9 @@

{article.title}

- {#if article.extracted_text} -

{article.extracted_text.split('\n').filter(l => l.trim() && l !== article.title)[0]?.slice(0, 120) || ''}

+ {@const summary = article.ai_summary?.replace(/[*#_`~]/g, '') || article.extracted_text?.split('\n').filter(l => l.trim() && l !== article.title)[0] || ''} + {#if summary} +

{summary.slice(0, 120)}

{/if}
{article.ai_sub_group || ''}