Forum implementiert #34

Merged
niklas.ortmann merged 20 commits from Forum into dev 2026-06-17 10:24:25 +02:00
Showing only changes of commit dafc149bba - Show all commits
+16 -5
View File
3
@@ -162,11 +162,22 @@ class DatabaseCommentManager implements CommentManagerDAO
$db = $this->getConnection();
$sql = "
SELECT *
FROM comments
WHERE article_id = :articleId
ORDER BY created ASC
";
SELECT
id,
article_id,
CASE
WHEN parent_comment_id IS NULL THEN NULL
WHEN parent_comment_id = '' THEN NULL
WHEN parent_comment_id = 0 THEN NULL
ELSE parent_comment_id
END AS parent_comment_id,
author,
content,
created
FROM comments
WHERE article_id = :articleId
caroline.slt marked this conversation as resolved Outdated
Outdated
Review

s. oben

s. oben
ORDER BY created ASC
";
$command = $db->prepare($sql);
1