chore: update embed URLs for Instagram and Reddit
This commit is contained in:
parent
ad46e065c9
commit
15915a08b9
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
|
|||
if (config.instagram) {
|
||||
result = result.replace(
|
||||
/https?:\/\/(?:www\.)?instagram\.com(\/[^\s]+)/gi,
|
||||
"https://uuinstagram.com$1",
|
||||
"https://oginstagram.com$1",
|
||||
);
|
||||
}
|
||||
// TikTok: Replace domain, keep path
|
||||
|
|
@ -61,7 +61,7 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
|
|||
if (config.reddit) {
|
||||
result = result.replace(
|
||||
/https?:\/\/(?:www\.)?reddit\.com(\/[^\s]+)/gi,
|
||||
"https://rxddit.com$1",
|
||||
"https://vxreddit.com$1",
|
||||
);
|
||||
}
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue