fix replace in x

This commit is contained in:
Guillermo Roche 2024-10-03 20:55:27 +02:00
parent 493dfcbb10
commit 8f76166fde
Signed by: groche97
GPG Key ID: 041FB85BEEA4B9B0

View File

@ -5,7 +5,8 @@ use curl::easy::Easy;
static URLS: phf::Map<&'static str, &'static str> = phf_map! {
"www.tiktok.com" => "vxtiktok.com",
"vm.tiktok.com" => "vxtiktok.com",
"x.com" => "fxtwitter.com",
"https://x.com" => "https://fxtwitter.com",
"https://fxtwitter.com" => "https://fxtwitter.com",
};
pub fn filter_string(url: String, domain: String) -> Option<String> {