diff --git a/inc/compilePostComments.js b/inc/compilePostComments.js index 930613e..829ed0c 100644 --- a/inc/compilePostComments.js +++ b/inc/compilePostComments.js @@ -8,6 +8,7 @@ module.exports = function() { let submitter_link = '' let moderator = false let submitter = false + let edited_span = '' if(post_author === comments.author) { classlist.push('submitter') @@ -24,20 +25,23 @@ module.exports = function() { } else { ups = `${kFormatter(comments.ups)} points` } + if(comments.edited) { + edited_span = `*` + } comments_html = `
${comments.author}${moderator ? moderator_badge : ''}
${ups}
-${timeDifference(comments.created)}
+${timeDifference(comments.created)}${edited_span}
${comments.stickied ? 'stickied comment' : ''}
${comments.author}${submitter ? submitter_link : ''}${moderator ? moderator_badge : ''}
${ups}
- ${timeDifference(comments.created)} + ${timeDifference(comments.created)}${edited_span}
${comments.stickied ? 'stickied comment' : ''}
${comment.author}${moderator ? moderator_badge : ''}
${ups}
-${timeDifference(comment.created)}
+${timeDifference(comment.created)}${edited_span}
${comment.stickied ? 'stickied comment' : ''}
${comment.author}${submitter ? submitter_link : ''}${moderator ? moderator_badge : ''}
${ups}
- ${timeDifference(comment.created)} + ${timeDifference(comment.created)}${edited_span}
${comment.stickied ? 'stickied comment' : ''}