fix: also set inner actor on filled undos

This commit is contained in:
əlemi 2024-07-05 04:23:53 +02:00
parent 5360489284
commit abb8095685
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -39,7 +39,9 @@ pub async fn process(ctx: Context, job: &model::job::Model) -> crate::JobResult<
.one(&tx)
.await?
.ok_or_else(|| sea_orm::DbErr::RecordNotFound(format!("actor={},type={},object={}",job.actor, undone_type, undone_target)))?;
undone = undone.set_id(Some(&undone_model.id));
undone = undone
.set_id(Some(&undone_model.id))
.set_actor(apb::Node::link(job.actor.clone()));
}
activity = activity.set_object(apb::Node::object(undone));
}