Merge changes in from Panama Red: Hotfix 4

This commit is contained in:
rainbow napkin 2026-07-03 02:04:11 -04:00
commit 3d853a3282
3 changed files with 2 additions and 11 deletions

View file

@ -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);