From 96a6f5c0d20ea3d66fec1a68ed863792ad44156b Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Fri, 3 Jul 2026 01:54:55 -0400 Subject: [PATCH] Removed a lazy hack thats no longer needed due to an improved server-side config --- README.md | 2 +- package.json | 4 ++-- src/utils/linkUtils.js | 9 --------- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index a61d209..f7fd6b2 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ Canopy -0.1-Alpha (Panama Red) - Hotfix 3 +0.1-Alpha (Panama Red) - Hotfix 4 ========= Canopy - /ˈkæ.nə.pi/: diff --git a/package.json b/package.json index 54af4f0..8d3c69d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "canopy-of-alpha", - "version": "0.1.3", - "canopyDisplayVersion": "0.1-Alpha (Panama Red) - Hotfix 3", + "version": "0.1.4", + "canopyDisplayVersion": "0.1-Alpha (Panama Red) - Hotfix 4", "license": "AGPL-3.0-only", "dependencies": { "@braintree/sanitize-url": "^7.1.1", diff --git a/src/utils/linkUtils.js b/src/utils/linkUtils.js index 76b8e45..e7149cd 100644 --- a/src/utils/linkUtils.js +++ b/src/utils/linkUtils.js @@ -35,15 +35,6 @@ module.exports.cache = new Map(); module.exports.markLink = async function(dirtyLink){ const link = sanitizeUrl(dirtyLink); - //If this link is referencing this web server - if(link.match(new RegExp(`^${config.protocol}://${config.domain}`)) != null){ - //Lazily return it as a good link, since we know it'll at least return a good 404 page XP - return { - link, - type: "link" - } - } - //Check link cache for the requested link const cachedLink = module.exports.cache.get(link);