From 017d189c9c179468c06d832da91ba6b433cc000a Mon Sep 17 00:00:00 2001 From: biglyderv Date: Wed, 8 Jan 2025 20:01:01 -0500 Subject: [PATCH] fix reply logic --- docs/api/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/comment.php b/docs/api/comment.php index 49f9a5c..7dfa729 100644 --- a/docs/api/comment.php +++ b/docs/api/comment.php @@ -58,7 +58,7 @@ } else if ($postType == 'comment') { $stmt = $db->prepare("SELECT * FROM comment WHERE id = ? ORDER BY date DESC"); $stmt->execute([ - $poid + $postId ]); $posts1 = $stmt->fetchAll(PDO::FETCH_DEFAULT);