This commit is contained in:
phiresky 2023-08-02 23:03:12 +00:00
parent 2d3ad1b076
commit bddcbab4cd
2 changed files with 6 additions and 9 deletions

View File

@ -15,9 +15,7 @@ use lemmy_api_common::{
person::{DeleteAccount, DeleteAccountResponse},
utils::{delete_user_account, local_user_view_from_jwt},
};
use lemmy_db_schema::source::activity::ActivitySendTargets;
use lemmy_api_common::{context::LemmyContext, utils::delete_user_account};
use lemmy_db_schema::source::person::Person;
use lemmy_db_schema::source::{activity::ActivitySendTargets, person::Person};
use lemmy_utils::error::LemmyError;
use url::Url;
@ -44,12 +42,11 @@ pub async fn delete_user(person: Person, context: Data<LemmyContext>) -> Result<
cc: vec![],
};
let mut inboxes = ActivitySendTargets::empty();
inboxes.set_all_instances(true);
let mut inboxes = ActivitySendTargets::empty();
inboxes.set_all_instances(true);
send_lemmy_activity(&context, delete, &actor, inboxes, true).await?;
Ok(())
}
send_lemmy_activity(&context, delete, &actor, inboxes, true).await?;
Ok(())
}
/// This can be separate from Delete activity because it doesn't need to be handled in shared inbox

View File

@ -104,7 +104,7 @@ pub(crate) async fn send_apub_delete_in_community_new(
activity,
&actor,
&community.into(),
vec![],
ActivitySendTargets::empty(),
is_mod_action,
&context,
)