mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-25 22:01:19 +00:00
Remove unwrap
This commit is contained in:
parent
a0fed24cee
commit
0b86ffbdbd
1 changed files with 4 additions and 1 deletions
|
@ -119,7 +119,10 @@ impl AnnounceActivity {
|
||||||
let announcable_page = RawAnnouncableActivities {
|
let announcable_page = RawAnnouncableActivities {
|
||||||
id: c.object.id.clone().into_inner(),
|
id: c.object.id.clone().into_inner(),
|
||||||
actor: c.actor.clone().into_inner(),
|
actor: c.actor.clone().into_inner(),
|
||||||
other: serde_json::to_value(c.object)?.as_object().unwrap().clone(),
|
other: serde_json::to_value(c.object)?
|
||||||
|
.as_object()
|
||||||
|
.expect("is object")
|
||||||
|
.clone(),
|
||||||
};
|
};
|
||||||
let announce_compat = AnnounceActivity::new(announcable_page, community, context)?;
|
let announce_compat = AnnounceActivity::new(announcable_page, community, context)?;
|
||||||
send_lemmy_activity(context, announce_compat, community, inboxes, false).await?;
|
send_lemmy_activity(context, announce_compat, community, inboxes, false).await?;
|
||||||
|
|
Loading…
Reference in a new issue