use crate::{
activities::{generate_activity_id, send_lemmy_activity, verify_is_public, verify_person},
use crate::{
activities::{generate_activity_id, send_lemmy_activity, verify_is_public, verify_person},
objects::{instance::remote_instance_inboxes, person::ApubPerson},
protocol::activities::deletion::delete_user::DeleteUser,
SendActivity,
objects::{instance::remote_instance_inboxes, person::ApubPerson},
protocol::activities::deletion::delete_user::DeleteUser,
SendActivity,
_response: &Self::Response,
context: &Data<LemmyContext>,
) -> Result<(), LemmyError> {
_response: &Self::Response,
context: &Data<LemmyContext>,
) -> Result<(), LemmyError> {
send_lemmy_activity(context, delete, &actor, inboxes, true).await?;
Ok(())
}
send_lemmy_activity(context, delete, &actor, inboxes, true).await?;
Ok(())
}
verify_is_public(&self.to, &[])?;
verify_person(&self.actor, context).await?;
verify_urls_match(self.actor.inner(), self.object.inner())?;
verify_is_public(&self.to, &[])?;
verify_person(&self.actor, context).await?;
verify_urls_match(self.actor.inner(), self.object.inner())?;