api/service-config/instagram: add support for more share links

This commit is contained in:
wukko 2025-02-10 11:53:37 +06:00
parent 8ab5e32390
commit de69989bbe
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2

View file

@ -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"],
},