Add debugging for reply button click issue

This commit is contained in:
2026-01-30 23:49:21 -05:00
parent a8738fdf57
commit 6dff92db45
2 changed files with 5 additions and 1 deletions

View File

@@ -362,7 +362,7 @@ $nonce = SecurityHeadersMiddleware::getNonce();
echo "<div class='comment-actions'>";
// Reply button (max depth of 3)
if ($threadDepth < 3) {
echo "<button type='button' class='comment-action-btn reply-btn' data-action='reply-comment' data-comment-id='{$commentId}' data-user='" . htmlspecialchars($displayName) . "' title='Reply'>↩</button>";
echo "<button type='button' class='comment-action-btn reply-btn' data-action='reply-comment' data-comment-id='{$commentId}' data-user=\"" . htmlspecialchars($displayName, ENT_QUOTES) . "\" title='Reply'>↩</button>";
}
// Edit/Delete buttons for owner or admin
if ($canModify) {