Nvm turns out that was easy (fixed remark count)

This commit is contained in:
swagg boi 2024-06-30 00:21:20 -04:00
parent ed5fb3d346
commit 3b1cdb54bb
2 changed files with 2 additions and 6 deletions

View File

@ -60,12 +60,7 @@ tests locally:
## TODOs ## TODOs
1. Is `remark_tally` counting hidden remarks? Tried to add a `WHERE - Tripcodes/PGP signing somehow perhaps...
NOT hidden_status` but that returns null, probably need a different
`JOIN` which may not be worth the trouble/processing
1. Nah it needs a subquery instead of just `COUNT(*)` (dude trust me)
1. Implement tripcodes (moving this down in priority due to complexity...)
1. Post thread via SMS (twil.io??)
## AGPL-3.0+ANTIFA compliance ## AGPL-3.0+ANTIFA compliance

View File

@ -44,6 +44,7 @@ sub by_page($self, $this_page = 1) {
LEFT JOIN remarks AS r LEFT JOIN remarks AS r
ON t.thread_id = r.thread_id ON t.thread_id = r.thread_id
WHERE NOT t.hidden_status WHERE NOT t.hidden_status
AND NOT r.hidden_status
GROUP BY t.thread_id GROUP BY t.thread_id
ORDER BY t.bump_date DESC ORDER BY t.bump_date DESC
LIMIT ? OFFSET ?; LIMIT ? OFFSET ?;