mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-22 14:45:10 +00:00
Removed hardcoded thumbnail value
This commit is contained in:
parent
ffcbb7613e
commit
38381ba287
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue