Update Twitter/X embed URL to use fxtwitter.com

This commit is contained in:
OTKUSteyler 2025-12-24 00:47:08 +01:00 • committed by GitHub
parent 5cdd217017
commit 36336f738f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,7 @@ function transformLinks(content: string, config: FixEmbedSettings): string {
if (config.twitter) {
result = result.replace(
/https?:\/\/(?:www\.)?(twitter\.com|x\.com)(\/[^\s]+)/gi,
"https://fxupx.com$2",
"https://fxtwitter.com$2",
);
}
// Instagram: Replace domain, keep path