forked from alemi/upub
fix: oops nuke must put jobs with activity id
This commit is contained in:
parent
8df27847ce
commit
48a8ff9fef
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
let target = if matches!(activity.activity_type, apb::ActivityType::Follow) {
|
||||||
oid.clone()
|
activity.id.clone()
|
||||||
} else {
|
} else {
|
||||||
let follow_activity = upub::model::activity::Entity::find_by_ap_id(&oid)
|
let follow_activity = upub::model::activity::Entity::find_by_ap_id(&oid)
|
||||||
.one(ctx.db())
|
.one(ctx.db())
|
||||||
.await?
|
.await?
|
||||||
.ok_or(sea_orm::DbErr::RecordNotFound(oid.clone()))?;
|
.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());
|
let aid = ctx.aid(&upub::Context::new_id());
|
||||||
|
|
Loading…
Reference in a new issue