]> Untitled Git - lemmy.git/commitdiff
Removed hardcoded thumbnail value
authorAndre Vallestero <andrevallestero@gmail.com>
Fri, 8 May 2020 01:33:47 +0000 (21:33 -0400)
committerAndre Vallestero <andrevallestero@gmail.com>
Fri, 8 May 2020 01:33:47 +0000 (21:33 -0400)
server/src/lib.rs

index f7d2b0e9468d734d90cce541771671d76969a44e..5566ca69b179285d031ce445eeed848453aa7591 100644 (file)
@@ -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