From 5cc148a887d456b2b0f7e577cccde5df1796d680 Mon Sep 17 00:00:00 2001 From: zeroxbob Date: Wed, 3 Dec 2025 18:54:52 +0100 Subject: [PATCH 1/2] Change allorigins to corsproxy --- website/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/app.js b/website/app.js index 0ffb3fc..d4544b3 100644 --- a/website/app.js +++ b/website/app.js @@ -180,7 +180,7 @@ extractStatus.className = "info-message"; // Use a CORS proxy to fetch the page - const proxyUrl = `https://api.allorigins.win/raw?url=${encodeURIComponent(url)}`; + const proxyUrl = `https://corsproxy.io/?${encodeURIComponent(url)}`; const response = await fetch(proxyUrl); if (!response.ok) { From 2485936cb72e58964c294e57caab29255a768e72 Mon Sep 17 00:00:00 2001 From: zeroxbob Date: Thu, 4 Dec 2025 11:05:59 +0100 Subject: [PATCH 2/2] Add url in r tag to kind 300023 note posted to the relay The r tag is indexed by relays and makes querying for the url easier. --- website/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/website/app.js b/website/app.js index d4544b3..b064e2f 100644 --- a/website/app.js +++ b/website/app.js @@ -361,6 +361,7 @@ created_at: timestamp, tags: [ ["d", `${currentArticle.url}-${timestamp}`], + ["r", currentArticle.url], ["title", currentArticle.title || "Untitled"], ["url", currentArticle.url || ""], ["published_at", String(timestamp)],