diff --git a/src/rewrite_links/links_to_rewrite.rs b/src/rewrite_links/links_to_rewrite.rs index d41fa19..116a5b2 100644 --- a/src/rewrite_links/links_to_rewrite.rs +++ b/src/rewrite_links/links_to_rewrite.rs @@ -5,6 +5,7 @@ use curl::easy::Easy; static URLS: phf::Map<&'static str, &'static str> = phf_map! { "www.tiktok.com" => "vxtiktok.com", "vm.tiktok.com" => "vxtiktok.com", + "lite.tiktok.com" => "vxtiktok.com", "https://x.com" => "https://fxtwitter.com", "https://twitter.com" => "https://fxtwitter.com", }; @@ -43,7 +44,7 @@ pub fn get_domain_from_text(text: String) -> (String, String) { for word in text.split(' ') { for domain in URLS.keys() { if word.contains(domain) { - if String::from(*domain).contains("vm.tiktok.com") { + if String::from(*domain).contains("vm.tiktok.com") || String::from(*domain).contains("lite.tiktok.com") { let url = match get_tiktok_redirection(String::from(word)) { Ok(furl) => furl, Err(_e) => String::from(word),