diff --git a/README.md b/README.md index 6d44f2b..383f6d3 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,7 @@ tests locally: ## TODOs +1. Winter/Christmas/New Years background 1. "All new posts flagged" mode (require approval for new posts) 1. Tests for mod-only user? @@ -68,6 +69,9 @@ tests locally: ### (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. Post thread via SMS (twil.io??) diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 61cae4e..f380650 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -43,7 +43,7 @@ sub by_page($self, $this_page = 1) { FROM threads AS t LEFT JOIN remarks AS r ON t.thread_id = r.thread_id - WHERE NOT (t.hidden_status OR r.hidden_status) + WHERE NOT t.hidden_status GROUP BY t.thread_id ORDER BY t.bump_date DESC LIMIT ? OFFSET ?;