feat: wait 24h before deleting cdn images

This commit is contained in:
alyssa 2025-01-02 00:33:13 +00:00
parent 31c0253b00
commit f1de2f2858
3 changed files with 25 additions and 5 deletions

View file

@ -89,6 +89,8 @@ async fn pull(
if !req.force {
if let Some(existing) = db::get_by_attachment_id(&state.pool, parsed.attachment_id).await? {
// remove any pending image cleanup
db::remove_deletion_queue(&state.pool, parsed.attachment_id).await?;
return Ok(Json(PullResponse {
url: existing.url,
new: false,