mirror of
https://codeberg.org/LibRedirect/libredirect.git
synced 2025-01-31 19:44:54 +01:00
fix: don't redirect for rest of instances
Unbreak old.reddit.com and i.reddit.com by ignoring image redirects for them.
This commit is contained in:
parent
123cca4e5c
commit
e86895b008
@ -454,6 +454,8 @@ function redirectReddit(url, initiator, type) {
|
||||
} else if (redditInstance.includes("teddit")) {
|
||||
let pathWithoutSlash = url.pathname.slice(1);
|
||||
return `${redditInstance}/pics/w:null_${pathWithoutSlash}${url.search}`
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return `${redditInstance}${url.pathname}${url.search}`;
|
||||
|
Loading…
x
Reference in New Issue
Block a user