feat: Introduce custom emojis, pinned comments, and thread locking features, while filtering deleted comments from API responses and refining comment root finding logic.
This commit is contained in:
@@ -38,7 +38,7 @@ export default (router, tpl) => {
|
||||
FROM comments c
|
||||
JOIN "user" u ON c.user_id = u.id
|
||||
LEFT JOIN user_options uo ON uo.user_id = u.id
|
||||
WHERE c.item_id = ${itemId}
|
||||
WHERE c.item_id = ${itemId} AND c.is_deleted = false
|
||||
ORDER BY COALESCE(c.is_pinned, false) DESC, c.created_at ${db.unsafe(sort === 'new' ? 'DESC' : 'ASC')}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user