mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-07-01 07:22:17 +02:00
Fix: reply issue
This commit is contained in:
@@ -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));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user