diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/micropub/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/micropub/mod.rs b/src/micropub/mod.rs index 663702f..f5cb5b9 100644 --- a/src/micropub/mod.rs +++ b/src/micropub/mod.rs @@ -281,8 +281,7 @@ pub(crate) async fn _post<D: 'static + Storage>( .as_array() .unwrap() .iter() - .map(|i| i.as_str().unwrap_or("")) - .filter(|i| !i.is_empty()); + .filter_map(|i| i.as_str()); let default_channel = user .me |