mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
fix: allow subdomains only for ddinstagram.com
This commit is contained in:
parent
e8d8a62dd1
commit
ea5b703703
@ -79,7 +79,6 @@
|
||||
},
|
||||
"instagram": {
|
||||
"alias": "instagram reels, posts & stories",
|
||||
"subdomains": ["d", "g"],
|
||||
"altDomains": ["ddinstagram.com"],
|
||||
"patterns": [
|
||||
"reels/:postId", ":username/reel/:postId", "reel/:postId", "p/:postId", ":username/p/:postId",
|
||||
|
@ -66,7 +66,7 @@ export function aliasURL(url) {
|
||||
}
|
||||
break;
|
||||
case "ddinstagram":
|
||||
if (services.instagram.altDomains.includes(host.domain) && (host.subdomain === null || services.instagram.subdomains.includes(host.subdomain))) {
|
||||
if (services.instagram.altDomains.includes(host.domain) && [null, 'd', 'g'].includes(host.subdomain)) {
|
||||
url.hostname = 'instagram.com';
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user