use webp format for twitter links since those are cheaper
This commit is contained in:
parent
09da5c7cd4
commit
afe5d44223
@ -134,9 +134,9 @@ async fn fetch_twitter_image_link(http: &reqwest::Client, url: &Uri) -> AppResul
|
|||||||
.headers()
|
.headers()
|
||||||
.get(http::header::LOCATION)
|
.get(http::header::LOCATION)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.to_str()?
|
.to_str()?;
|
||||||
.to_owned();
|
// use webp format for direct twitter links since webp is cheaper
|
||||||
Ok(link)
|
Ok(format!("{link}?format=webp"))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_conf(name: &str) -> String {
|
fn get_conf(name: &str) -> String {
|
||||||
|
Loading…
Reference in New Issue
Block a user