summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Reeder <colin@vpzom.click>2020-09-06 12:43:54 -0600
committerColin Reeder <colin@vpzom.click>2020-09-06 12:43:54 -0600
commitd3a58b4f307a26b1475a366c6b95891654cc4b1b (patch)
tree0e3cbb222db825e04e12dc946d01e833a962064a
parentd0f9369fe16ec83de034ef1aebee572b17d9f320 (diff)
Handle case for missing community description
-rw-r--r--src/apub_util.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apub_util.rs b/src/apub_util.rs
index 47e0b5f..62d1486 100644
--- a/src/apub_util.rs
+++ b/src/apub_util.rs
@@ -437,7 +437,8 @@ pub async fn fetch_actor(
.unwrap_or("");
let description = group
.summary()
- .and_then(|maybe| maybe.iter().filter_map(|x| x.as_xsd_string()).next());
+ .and_then(|maybe| maybe.iter().filter_map(|x| x.as_xsd_string()).next())
+ .unwrap_or("");
let inbox = group.inbox_unchecked().as_str();
let shared_inbox = group
.endpoints_unchecked()