dracidoupe / graveyard

Open Source reimplementation of https://www.dracidoupe.cz/
https://nove.dracidoupe.cz/
MIT License
6 stars 4 forks source link

Unread posts in tavern are not in sync between versions #319

Closed Almad closed 3 years ago

Almad commented 3 years ago

I am apparently using the wrong unread count since "read" is tracked independently in each version.

Almad commented 3 years ago

OK, so this is because old version never updates unread count and instead, new posts are queries for every tavern table:

            $sql="SELECT count(*) as pocet FROM putyka_prispevky WHERE id_stolu='".$zaznam["id"]."' AND datum>'".$when["datum"]."'
                     GROUP BY id_stolu";
Almad commented 3 years ago

I deem this a "known bug" then. Fixing it in the new version would make tavern really slow and it will auto-fix itself after the old version is shut down.