This commit is contained in:
Felix Ableitner 2024-01-25 13:26:49 +01:00
parent 5df2598dba
commit 2e1a2b7a35

View File

@ -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
} }