Error message if deleting last post of a forum thread
Summary
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
Es ist ein Fehler aufgetreten: HTTP Error 404: Not Found during GET http://localhost:18080/api/forum/thread/29124
Possible fixes
Redirect to forum with a flash message of successful deletion instead of trying to load the deleted post again