Alright, I’ve figured out the issue here. When a post is deleted, it still appears for the original poster. So, the first time you deleted the post, it worked, but the second time, an error message is displayed, essentially stating that you can’t delete a post twice.
To resolve this, I need to update the UI to show that the post was successfully deleted and disable the delete action for already deleted posts.
Alright, I’ve figured out the issue here. When a post is deleted, it still appears for the original poster. So, the first time you deleted the post, it worked, but the second time, an error message is displayed, essentially stating that you can’t delete a post twice.
To resolve this, I need to update the UI to show that the post was successfully deleted and disable the delete action for already deleted posts.