From: Andre Vallestero Date: Fri, 8 May 2020 01:33:47 +0000 (-0400) Subject: Removed hardcoded thumbnail value X-Git-Url: http://these/git/%7B%60https:/%7B%60css/themes/%22https:/nerdica.net/%7Bthis.props.site.site.icon%7D?a=commitdiff_plain;h=38381ba2878f481dbba387cced3f3ac693a33fd3;p=lemmy.git Removed hardcoded thumbnail value --- diff --git a/server/src/lib.rs b/server/src/lib.rs index f7d2b0e9..5566ca69 100644 --- a/server/src/lib.rs +++ b/server/src/lib.rs @@ -222,11 +222,7 @@ fn fetch_iframely_and_pictshare_data( None => match url { Some(url) => match fetch_pictshare(&url) { // Try to generate a small thumbnail if iframely is not supported - Ok(res) => { - let mut split_url: Vec<&str> = res.url.split('/').collect(); - split_url.insert(split_url.len() - 1, "192"); - Some(split_url.join("/")) - } + Ok(res) => Some(res.url), Err(e) => { error!("pictshare err: {}", e); None