Removed hardcoded thumbnail value

This commit is contained in:
Andre Vallestero 2020-05-07 21:33:47 -04:00
parent ffcbb7613e
commit 38381ba287

View file

@ -222,11 +222,7 @@ fn fetch_iframely_and_pictshare_data(
None => match url { None => match url {
Some(url) => match fetch_pictshare(&url) { Some(url) => match fetch_pictshare(&url) {
// Try to generate a small thumbnail if iframely is not supported // Try to generate a small thumbnail if iframely is not supported
Ok(res) => { Ok(res) => Some(res.url),
let mut split_url: Vec<&str> = res.url.split('/').collect();
split_url.insert(split_url.len() - 1, "192");
Some(split_url.join("/"))
}
Err(e) => { Err(e) => {
error!("pictshare err: {}", e); error!("pictshare err: {}", e);
None None