Allow the summary
property to be absent from AP Actors
This commit is contained in:
parent
782955e2c4
commit
9701340c84
@ -190,7 +190,7 @@ impl User {
|
|||||||
outbox_url: acct.object.ap_actor_props.outbox_string().expect("User::from_activity: outbox error"),
|
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"),
|
inbox_url: acct.object.ap_actor_props.inbox_string().expect("User::from_activity: inbox error"),
|
||||||
is_admin: false,
|
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,
|
email: None,
|
||||||
hashed_password: None,
|
hashed_password: None,
|
||||||
instance_id: instance.id,
|
instance_id: instance.id,
|
||||||
|
Loading…
Reference in New Issue
Block a user