Issue with restoring a post when permanently deleting it

Steps to reproduce the issue:

  1. Delete the post.

  2. Immediately permanently delete the post before the 5-minute waiting period is over.

  3. The normal 5-minute waiting prompt appears.

  4. After automatically returning, the following issue occurs: the deleted post is automatically restored to its undeleted state, requiring deletion again and then waiting another 5 minutes for permanent deletion.