mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-09 01:10:39 +00:00
clippy
This commit is contained in:
parent
5df2598dba
commit
2e1a2b7a35
@ -60,10 +60,10 @@ pub(crate) async fn send_apub_delete_in_community(
|
|||||||
let actor = ApubPerson::from(actor);
|
let actor = ApubPerson::from(actor);
|
||||||
let is_mod_action = reason.is_some();
|
let is_mod_action = reason.is_some();
|
||||||
let activity = if deleted {
|
let activity = if deleted {
|
||||||
let delete = Delete::new(&actor, object, public(), Some(&community), reason, &context)?;
|
let delete = Delete::new(&actor, object, public(), Some(&community), reason, context)?;
|
||||||
AnnouncableActivities::Delete(delete)
|
AnnouncableActivities::Delete(delete)
|
||||||
} else {
|
} else {
|
||||||
let undo = UndoDelete::new(&actor, object, public(), Some(&community), reason, &context)?;
|
let undo = UndoDelete::new(&actor, object, public(), Some(&community), reason, context)?;
|
||||||
AnnouncableActivities::UndoDelete(undo)
|
AnnouncableActivities::UndoDelete(undo)
|
||||||
};
|
};
|
||||||
send_activity_in_community(
|
send_activity_in_community(
|
||||||
@ -72,7 +72,7 @@ pub(crate) async fn send_apub_delete_in_community(
|
|||||||
&community.into(),
|
&community.into(),
|
||||||
ActivitySendTargets::empty(),
|
ActivitySendTargets::empty(),
|
||||||
is_mod_action,
|
is_mod_action,
|
||||||
&context,
|
context,
|
||||||
)
|
)
|
||||||
.await
|
.await
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user