Browse Source

fix disqus comments.

Jason Schwarzenberger 11 months ago
parent
commit
7592ee7995
1 changed files with 2 additions and 2 deletions
  1. 2 2
      utils/disqus-thread.js

+ 2 - 2
utils/disqus-thread.js

@@ -7,14 +7,14 @@ module.exports.disqusThread = data => {
 			date: post.createdAt,
 			text: post.raw_message,
 			score: post.points,
-			children: [],
+			comments: [],
 			id: post.id.toString(),
 			parent: (post.parent || '').toString(),
 		}
 	}), {});
 	Object.keys(comments).filter(id => !!comments[id].parent).forEach(id => {
 		const comment = comments[id];
-		comments[comment.parent].children.push(comment);
+		comments[comment.parent].comments.push(comment);
 	});
 	const parents = Object.keys(comments).filter(id => comments[id].parent).map(id => comments[id]);
 	return parents;