From 0cf3d6d6c94567fb0f4574292315782b925d8f0f Mon Sep 17 00:00:00 2001 From: Austin Huang Date: Sat, 15 Oct 2022 00:20:41 -0400 Subject: [PATCH] Add preview.redd.it to replaceable_media_domains Since you already replace preview.redd.it links like so in post contents --- routes/home.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/home.js b/routes/home.js index 9532d78..a8f83d8 100644 --- a/routes/home.js +++ b/routes/home.js @@ -40,7 +40,7 @@ homeRoute.get([`/:sort?`, '/frontpage'], async (req, res, next) => { : false; if (proxyable) { let media_url = ''; - const replacable_media_domains = ['i.redd.it', 'v.redd.it', 'external-preview.redd.it'] + const replacable_media_domains = ['i.redd.it', 'v.redd.it', 'external-preview.redd.it', 'preview.redd.it'] if (req.query.teddit_proxy) { if (replacable_media_domains.includes(req.query.teddit_proxy)) { let full_url = req.protocol + '://' + req.get('host') + req.originalUrl;