summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/details/comments.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/details/comments.js')
-rw-r--r--public/assets/js/lib/views/details/comments.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/details/comments.js b/public/assets/js/lib/views/details/comments.js
index 4c217a4..0c2cdcc 100644
--- a/public/assets/js/lib/views/details/comments.js
+++ b/public/assets/js/lib/views/details/comments.js
@@ -27,7 +27,8 @@ var CommentsView = FormView.extend({
parse: function(comment){
if (! comment.comment.length) return $('')
var datetime = verbose_date(comment.date, true)
- var t = this.template.replace(/{{username}}/g, comment.username)
+ var t = this.template.replace(/{{image}}/g, profile_image(comment.username))
+ .replace(/{{username}}/g, comment.username)
.replace(/{{id}}/g, comment.id)
.replace(/{{comment}}/g, tidy_urls(comment.comment))
.replace(/{{date}}/g, datetime[0])