diff options
Diffstat (limited to 'src/micropub/post.rs')
-rw-r--r-- | src/micropub/post.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/micropub/post.rs b/src/micropub/post.rs index b3fe4ee..edadeed 100644 --- a/src/micropub/post.rs +++ b/src/micropub/post.rs @@ -346,19 +346,19 @@ async fn post_process_new_post<S: Storage>( .filter_map(|v: surf::Url| async move { if let Ok(res) = http.get(&v).send().await { if res.status() != 200 { - return None; + None } else { - return Some((v, res)); + Some((v, res)) } } else { - return None; + None } }) .filter_map(|(v, mut res): (surf::Url, surf::Response)| async move { if let Ok(body) = res.body_string().await { - return Some((v, body)); + Some((v, body)) } else { - return None; + None } }) .collect() @@ -373,7 +373,7 @@ async fn post_process_new_post<S: Storage>( if let Some(syndication_targets) = post["properties"]["syndicate-to"].as_array() { syndicated_copies = stream::iter( syndication_targets - .into_iter() + .iter() .filter_map(|v| v.as_str()) .filter_map(|t| surf::Url::parse(t).ok()) .collect::<Vec<_>>() |