Add preview.redd.it to replaceable_media_domains

Since you already replace preview.redd.it links like so in post contents
This commit is contained in:
Austin Huang 2022-10-15 00:20:41 -04:00
parent 27874a6766
commit 0cf3d6d6c9
No known key found for this signature in database
GPG Key ID: 84C23AA04587A91F
1 changed files with 1 additions and 1 deletions

View File

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