From 7d25b2e71ee9ee99d051e85d0de1c400bc95168d Mon Sep 17 00:00:00 2001 From: alma Date: Tue, 15 Apr 2025 14:59:20 +0200 Subject: [PATCH] news design correction padding 16 --- app/api/news/route.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/app/api/news/route.ts b/app/api/news/route.ts index ff58881..a5bc74d 100644 --- a/app/api/news/route.ts +++ b/app/api/news/route.ts @@ -53,14 +53,8 @@ function truncateText(text: string, maxLength: number): string { // Helper function to format category function formatCategory(category: string): string | null { if (!category) return null; - const categoryMap: { [key: string]: string } = { - 'GLOBAL ISSUES - WORLD AFFAIRS': 'WORLD', - 'UN NEWS - GLOBAL NEWS': 'UN NEWS', - 'GLOBAL NEWS': 'WORLD', - }; - - const normalizedCategory = category.toUpperCase(); - return categoryMap[normalizedCategory] || normalizedCategory; + // Return null for all categories to remove the labels completely + return null; } // Helper function to format source