Mentions showing as deleted/unknown on deleted posts
- Dominant language
- No language data
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
## Bug Report
**Current Behavior**
When you delete a post that contains mentions to posts or users, those mentions for some reason show as deleted/unknown.
**Steps to Reproduce**
1. Make a post with some mentions
2. Delete the post
3. Show the post as an admin
4. See invalid mentions
**Expected Behavior**
There is no reason for the mentions not to be valid, they should be rendering correctly.
**Environment**
- Flarum version: 1.0.3
- PHP version: 8.0
- Browser: Chrome 91
**Possible Solution**
It seems like the post mentions relationships are deleted when the post is deleted, we should refrain from doing so and instead delete those relationships when the post is actually hard deleted (forever).
Contributor guide
Assessment
This issue has not been assessed yet.