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:
parent
27874a6766
commit
0cf3d6d6c9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue