diff --git a/README.md b/README.md index 383f6d3..6d44f2b 100644 --- a/README.md +++ b/README.md @@ -61,7 +61,6 @@ 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? @@ -69,9 +68,6 @@ 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 f380650..61cae4e 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 + WHERE NOT (t.hidden_status OR r.hidden_status) GROUP BY t.thread_id ORDER BY t.bump_date DESC LIMIT ? OFFSET ?;