From abb809568527d18181a177938786ee9f3d6f2153 Mon Sep 17 00:00:00 2001 From: alemi Date: Fri, 5 Jul 2024 04:23:53 +0200 Subject: [PATCH] fix: also set inner actor on filled undos --- upub/worker/src/outbound.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/upub/worker/src/outbound.rs b/upub/worker/src/outbound.rs index 2bb7412f..97c13b95 100644 --- a/upub/worker/src/outbound.rs +++ b/upub/worker/src/outbound.rs @@ -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)); }