module.exports = function() { this.compilePostCommentsHtml = (comments, next_comment, post_id, post_url, morechildren_ids, post_author) => { return new Promise((resolve, reject) => { (async () => { let comments_html if(comments.author !== undefined && comments.body_html !== undefined) { let classlist = [] let submitter_link = '' if(post_author === comments.author) { classlist.push('submitter') submitter_link = `[S]` } if(comments.author === 'AutoModerator') { classlist.push('green') } comments_html = `
${comments.author}
${kFormatter(comments.ups)} points
${timeDifference(comments.created)}
${comments.author}${comments.author === post_author ? submitter_link : ''}
${kFormatter(comments.ups)} points
${timeDifference(comments.created)}
${comment.author}
${kFormatter(comment.ups)} points
${timeDifference(comment.created)}
${comment.author}${comment.author === post_author ? submitter_link : ''}
${kFormatter(comment.ups)} points
${timeDifference(comment.created)}