flarum / flarum/issue-archive

Discussion start post metadata not updated if first post is deleted

Open
#306 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

needs-discussion type/bug
Dominant language
No language data
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

1. Create a new discussion
2. Post a reply to that discussion
3. Delete the first post ± forever
4. The `start_user_id` and `start_post_id` values for that discussion are not updated

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the four steps in the issue and inspect how discussion metadata is handled when the first post is deleted. Confirm that start_user_id and start_post_id are updated to the remaining first post, but the payload names no files, tests, or entry points to begin with.

Written by the indexing model from the issue text.

Assessment

Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.