From b998e43306c796396db0459adf439ed1cb504c97 Mon Sep 17 00:00:00 2001 From: Rama Priyanto Date: Fri, 16 May 2025 14:48:29 +0700 Subject: [PATCH] fix:hot topic id, mediahub thumbnail --- components/landing/HeaderNews.tsx | 2 +- components/landing/MedolUpdate.tsx | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/components/landing/HeaderNews.tsx b/components/landing/HeaderNews.tsx index e2fb6b0..1eff6fa 100644 --- a/components/landing/HeaderNews.tsx +++ b/components/landing/HeaderNews.tsx @@ -71,7 +71,7 @@ export default function HeaderNews() { limit: "10", sortBy: "view_count", sort: "desc", - category: "586", + category: "1906", isPublish: true, }; const response = await getListArticle(req); diff --git a/components/landing/MedolUpdate.tsx b/components/landing/MedolUpdate.tsx index 1450dff..3479b98 100644 --- a/components/landing/MedolUpdate.tsx +++ b/components/landing/MedolUpdate.tsx @@ -170,7 +170,7 @@ export default function MedolUpdate() { > {mediahubUpdate?.map((newsItem: any) => ( @@ -185,7 +185,8 @@ export default function MedolUpdate() { height={480} alt="tes" className="object-cover !h-[20vh]" - src={newsItem.thumbnailLink} + // src={newsItem.thumbnailLink} + src={`https://mediahub.polri.go.id/api/media/view?id=${newsItem?.id}&operation=thumbnail&isSmall=true`} />