Repository navigation
[FIX] Forum: Recalculate counters of copied forums [release_11] - #12500
Merged
mjansenDatabay merged 4 commits intoDec 4, 2026
Merged
mjansenDatabay merged 4 commits into
mjansenDatabay merged 4 commits into
Conversation
Copying a forum kept the source counters and then incremented them again for every new thread and post. The thread overview then showed empty pages. A migration recalculates the counters of existing forums.
marvin-matuschek
force-pushed
the
fix/11/forum-copy-counters
branch
from
December 1, 2026 14:46
8bf97e6 to
3186336
Compare
…ated counts Join thread and post totals once and store missing counts as zero.
marvin-matuschek
marked this pull request as ready for review
December 1, 2026 14:55
The copy relied on the thread's post counter, which is never loaded and always 0, so every copied thread got a visible first posting. Whether the source thread has a first visible posting now decides this instead. The copy also gets its own creation date and the copying user as author, instead of the source forum's values.
marvin-matuschek
force-pushed
the
fix/11/forum-copy-counters
branch
from
December 2, 2026 16:12
2725124 to
ea270f4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR belongs to #12468
Copying a forum kept the source counters and then incremented them again for every new thread and post. The thread overview then showed empty pages. A migration recalculates the counters of existing forums.