mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-11 00:07:55 +00:00
feat: wait 24h before deleting cdn images
This commit is contained in:
parent
31c0253b00
commit
f1de2f2858
3 changed files with 25 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue