mirror of
https://github.com/wukko/cobalt.git
synced 2025-02-13 14:16:25 +01:00
api/service-config/instagram: add support for more share links
This commit is contained in:
parent
8ab5e32390
commit
de69989bbe
1 changed files with 16 additions and 5 deletions
|
@ -35,14 +35,25 @@ export const services = {
|
|||
},
|
||||
instagram: {
|
||||
patterns: [
|
||||
"reels/:postId",
|
||||
":username/reel/:postId",
|
||||
"reel/:postId",
|
||||
"p/:postId",
|
||||
":username/p/:postId",
|
||||
"tv/:postId",
|
||||
"reel/:postId",
|
||||
"reels/:postId",
|
||||
"stories/:username/:storyId",
|
||||
"share/:shareId"
|
||||
|
||||
/*
|
||||
share & username links use the same url pattern,
|
||||
so we test the share pattern first, cuz id type is different.
|
||||
however, if someone has the "share" username and the user
|
||||
somehow gets a link of this ancient style, it's joever.
|
||||
*/
|
||||
|
||||
"share/:shareId",
|
||||
"share/p/:shareId",
|
||||
"share/reel/:shareId",
|
||||
|
||||
":username/p/:postId",
|
||||
":username/reel/:postId",
|
||||
],
|
||||
altDomains: ["ddinstagram.com"],
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue