From 48a8ff9fefa78a99407f7cdb5fc9ea6ee959d1a6 Mon Sep 17 00:00:00 2001 From: alemi Date: Mon, 24 Jun 2024 02:29:45 +0200 Subject: [PATCH] fix: oops nuke must put jobs with activity id --- upub/cli/src/nuke.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upub/cli/src/nuke.rs b/upub/cli/src/nuke.rs index 941e5e06..426a91c7 100644 --- a/upub/cli/src/nuke.rs +++ b/upub/cli/src/nuke.rs @@ -52,13 +52,13 @@ pub async fn nuke(ctx: upub::Context, for_real: bool, delete_posts: bool) -> Res }; let target = if matches!(activity.activity_type, apb::ActivityType::Follow) { - oid.clone() + activity.id.clone() } else { let follow_activity = upub::model::activity::Entity::find_by_ap_id(&oid) .one(ctx.db()) .await? .ok_or(sea_orm::DbErr::RecordNotFound(oid.clone()))?; - follow_activity.object.unwrap_or_default() + follow_activity.id }; let aid = ctx.aid(&upub::Context::new_id());