Compare commits

...

2 commits

Author SHA1 Message Date
swaggboi 9ae119c6cb Fixed hostnames 2024-06-30 00:32:50 -04:00
swaggboi 3b1cdb54bb Nvm turns out that was easy (fixed remark count) 2024-06-30 00:21:20 -04:00
2 changed files with 6 additions and 9 deletions

View file

@ -40,15 +40,16 @@ tests locally:
### Tag ### Tag
podman tag post_text git.minimally.online/swaggboi_priv/post_text podman tag post_text \
git.seriousbusiness.international/swaggboi_priv/post_text
### Push ### Push
podman push git.minimally.online/swaggboi_priv/post_text podman push git.seriousbusiness.international/swaggboi_priv/post_text
### Pull ### Pull
podman pull git.minimally.online/swaggboi_priv/post_text podman pull git.seriousbusiness.international/swaggboi_priv/post_text
### Run ### Run
@ -60,12 +61,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 ?;