From fa2e19054f8aa1ad8dc290daa2567a28c363d337 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 8 Jan 2026 18:20:31 +0000 Subject: [PATCH] fix: remove broken reader.html links - point directly to articles with UTM tracking --- src/aggregator.js | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/aggregator.js b/src/aggregator.js index 10b6c9258..7a1625e1d 100644 --- a/src/aggregator.js +++ b/src/aggregator.js @@ -28,18 +28,6 @@ function addUTMParams(url, category = 'general') { return url.includes('?') ? `${url}&${utmParams}` : `${url}?${utmParams}`; } -// Generate reader link for iframe display -function generateReaderLink(article) { - const baseUrl = 'https://thephoenixagency.github.io/AI-Pulse/reader.html'; - const params = new URLSearchParams({ - url: article.link, - title: article.title, - source: article.source, - tags: article.tags.join(', ') - }); - return `${baseUrl}?${params.toString()}`; -} - /** * Smart truncate: cut at last punctuation before limit * Avoids cutting words in the middle @@ -190,8 +178,7 @@ function generateREADME(categorizedArticles) { articles.slice(0, 15).forEach((article, index) => { const tags = article.tags.map(t => `\`${t}\``).join(' '); - const readerLink = generateReaderLink(article); - readme += `### ${index + 1}. [${article.title}](${readerLink})\n`; + readme += `### ${index + 1}. [${article.title}](${article.link})\n`; readme += `**Source:** ${article.source} | **Tags:** ${tags}\n`; readme += `${article.summary}\n\n`; });