Fix: reply issue

This commit is contained in:
hyzen
2026-06-08 19:55:37 +05:30
parent 21093764f4
commit eeb29dac11
4 changed files with 10 additions and 9 deletions

View File

@@ -160,8 +160,9 @@
// Nested replies
var repliesEl = el.querySelector('.comment__replies');
if (c.replies && c.replies.length) {
c.replies.forEach(function (r) {
var replyList = Array.isArray(c.replies) ? c.replies : Object.values(c.replies || {});
if (replyList.length) {
replyList.forEach(function (r) {
repliesEl.appendChild(renderComment(r, depth + 1));
});
}