Allow the summary property to be absent from AP Actors

This commit is contained in:
Bat 2018-07-19 10:41:37 +02:00
parent 782955e2c4
commit 9701340c84

View File

@ -190,7 +190,7 @@ impl User {
outbox_url: acct.object.ap_actor_props.outbox_string().expect("User::from_activity: outbox error"),
inbox_url: acct.object.ap_actor_props.inbox_string().expect("User::from_activity: inbox error"),
is_admin: false,
summary: SafeString::new(&acct.object.object_props.summary_string().expect("User::from_activity: summary error")),
summary: SafeString::new(&acct.object.object_props.summary_string().unwrap_or(String::new())),
email: None,
hashed_password: None,
instance_id: instance.id,