lmao nvm that was easy

This commit is contained in:
swagg boi 2023-11-07 16:42:36 -05:00
parent 1643fcba89
commit 4b3ef32fb3
2 changed files with 1 additions and 5 deletions

View file

@ -61,7 +61,6 @@ tests locally:
## TODOs ## TODOs
1. Winter/Christmas/New Years background
1. "All new posts flagged" mode (require approval for new posts) 1. "All new posts flagged" mode (require approval for new posts)
1. Tests for mod-only user? 1. Tests for mod-only user?
@ -69,9 +68,6 @@ tests locally:
### (Lord knows there's TODOs I could be working on...) ### (Lord knows there's TODOs I could be working on...)
1. Is `remark_tally` counting hidden remarks? Tried to add a `WHERE
NOT hidden_status` but that returns null, probably need a different
`JOIN` which may not be worth the trouble/processing
1. Implement tripcodes (moving this down in priority due to complexity...) 1. Implement tripcodes (moving this down in priority due to complexity...)
1. Post thread via SMS (twil.io??) 1. Post thread via SMS (twil.io??)

View file

@ -43,7 +43,7 @@ sub by_page($self, $this_page = 1) {
FROM threads AS t FROM threads AS t
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 OR 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 ?;