Mark Forum as Read - changing forums to be marked as Unread

Be sure to read and follow the guidelines for our forums.

Jun 11, 2025 3:59 pm
This morning I noticed that every forum for me was marked as Unread.

When I enter a forum all threads appear to be read then when I exit the forum it is now marked as read.

After doing this with several forums and realizing that the threads were all mis-marked I tried going to the main forum page and clicking "mark as read" for all forums.

This then undid all the forums that were not showing new posts and marked them as unread again.
Jun 11, 2025 4:15 pm
After doing some testing.

If I open a game forum that has subforums, hitting the Mark as Read will make the the Subforums all unread and the threads in the main forum marked as Read.

This seems to be the main "Bug" which would probably be why if I hit "Mark as Read" for all Forums on the site, it will mark each "Subforum" as Unread.
Jun 11, 2025 4:15 pm
Uh oh. I made a fix to a previous bug in the marked unread code, but I wonder if it was hiding another issue. I'll go back over this.
Jun 11, 2025 9:09 pm
Yah, looks like I introduced a but that was missed on staging. I'm working on a fix.
Jun 11, 2025 9:14 pm
hehe introduced a butt.

Thank you for all that you do for this community
Jun 11, 2025 10:14 pm
There's a fix on staging. If folks can help test, I can get it on prod ASAP.
Jun 12, 2025 1:12 am
If I go into a game it works for all threads and subforums but if I do it from /forums it doesn't update all forums
Jun 12, 2025 2:12 am
If I go into those forums on Staging that claim to be unread (though they aren't) and then go into them and mark them as read, they stay marked as read.
Jun 12, 2025 3:24 am
Ok, there's a bunch of new code up to try to fix the reported issues.
Jun 12, 2025 5:41 pm
Code has been pushed to prod. Hopefully this resolves the marked read/unread issues. Let me know if more are found.
Jun 12, 2025 5:49 pm
I got a fresh batch of forums marked unread after that code was pushed to prod. Sorry.
Jun 12, 2025 5:59 pm
ForeverDED says:
I got a fresh batch of forums marked unread after that code was pushed to prod. Sorry.
To be clear, is that new actions are causing unwanted behavior, or the state of the data after the push is problematic? Because how new posts are calculated and the bug, things may look funky initially, but making a forum as read, visiting threads, or marking posts as unread should even out the state of the data.
Jun 12, 2025 6:30 pm
For me, nearly every game forum and a handful of general ones got marked as unread after the update. Since they do become unread after ether visiting or marking them as unread, the code itself does seem to be working - just the initial state is off.

(Also, some games had unread status despite every thread in them displaying as read, but marking the forums as read did help.)
Jun 12, 2025 9:33 pm
I see games I post to marked as unread, but when I go into the game the thread is marked as read. Clicking "Mark all as read" clears the game unread status
Jun 12, 2025 9:37 pm
Psybermagi says:
I see games I post to marked as unread, but when I go into the game the thread is marked as read. Clicking "Mark all as read" clears the game unread status
So you're saying when you make a post, the thread is showing up as unread? Even if you're the last post?
Jun 12, 2025 11:12 pm
In the Games Forum, but not in the individual forum for each game. Yes.
Jun 13, 2025 12:36 am
Keleth says:
Psybermagi says:
I see games I post to marked as unread, but when I go into the game the thread is marked as read. Clicking "Mark all as read" clears the game unread status
So you're saying when you make a post, the thread is
badbaron says:
In the Games Forum, but not in the individual forum for each game. Yes.
showing up as unread? Even if you're the last post?
Same.

Also mark forum as read is slow I believe. Thanks.
Last edited June 13, 2025 12:39 am
Jun 13, 2025 12:48 am
Likewise (I stand corrected about everything working as intended). Similarly only happens on the main forums, not game ones.
Jun 13, 2025 1:48 am
Hm... unfortunately, I'm out of town until Monday, but I'll see if I get a chance to do any coding work over this weekend. I can't seem to replicate this behavior myself (I can hit mark as read on any forum without any issue so far), so what I'll ask is if someone can get this to happen on staging consistently, let me know (if on a different user, what user) and tell me how you're doing it. I can use that to try to test the behavior on staging and see if I can't figure out why.
load next

You do not have permission to post in this thread.