flarum / flarum/issue-archive

Mentions showing as deleted/unknown on deleted posts

Open
#76 7 comments 0 reactions 0 assignees View on GitHub
type/bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.