From 70d61553210170c76db71898ea2c9fad63493a91 Mon Sep 17 00:00:00 2001 From: Cyanoure Date: Tue, 8 Aug 2023 18:47:09 +0200 Subject: [PATCH] Removed comments from news --- app/assets/js/scripts/landing.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/assets/js/scripts/landing.js b/app/assets/js/scripts/landing.js index 9f88b77..edcc413 100644 --- a/app/assets/js/scripts/landing.js +++ b/app/assets/js/scripts/landing.js @@ -992,8 +992,9 @@ async function loadNews(){ const date = new Date(el.find('pubDate').text()).toLocaleDateString('hu-HU', {month: 'short', day: 'numeric', year: 'numeric', hour: 'numeric', minute: 'numeric'}) // Resolve comments. - let comments = el.find('comments').text() || '0' - comments = comments + ' Komment' + /*let comments = el.find('comments').text() || '0' + comments = comments + ' Komment'*/ + let comments = '' // Fix relative links in content. let content = el.find('content').text()