Error message if deleting last post of a forum thread
Last post of a forum does get deleted but there is an error message.
Steps to reproduce
- Create a new thread with lets say two posts as a bot
- delete the first/oldest one (maybe doesn't matter)
- delete the last one
What is the current bug behavior?
404 error but it DOES get deleted
What is the expected correct behavior?
There should be no error message
Relevant error messages and/or screenshots
Redirect to forum with a flash message of successful deletion instead of trying to load the deleted post again