mirror of
https://github.com/LemmyNet/lemmy
synced 2024-11-17 09:25:50 +00:00
fix
This commit is contained in:
parent
2d3ad1b076
commit
bddcbab4cd
@ -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
|
||||
|
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user