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%60%24%7BwebArchiveUrl%7D/%22%7B%7D/readmes/%7B%7D/static/%7BpictrsAvatarThumbnail%28community.icon%29%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