Handle needs_unread on tag query. Move News to top of tag list

This commit is contained in:
2024-07-22 07:24:28 -07:00
parent 79db94f67f
commit 834efc5c94
3 changed files with 10 additions and 3 deletions

View File

@@ -8,6 +8,11 @@ SELECT
FROM
post AS p
JOIN feed AS f ON p.site = f.slug
WHERE
(
NOT $1
OR NOT is_read
)
GROUP BY
1,
2