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:
commit
1ece7467dc
|
@ -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