Merge pull request 'Add preview.redd.it to replaceable_media_domains' (#355) from austinhuang/teddit:main into main

Reviewed-on: https://codeberg.org/teddit/teddit/pulls/355
This commit is contained in:
teddit 2022-10-18 16:30:43 +02:00
commit 1ece7467dc
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;