From 7db183418206aadb46acb2d5733c23da7fc0b547 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Fri, 3 May 2013 17:09:38 +0000 Subject: [PATCH] gravatars in posts --- public/templates/topic.tpl | 2 +- src/posts.js | 29 ++++++++++++++++------------- src/user.js | 27 +++++++++++++++++++++++++++ 3 files changed, 44 insertions(+), 14 deletions(-) diff --git a/public/templates/topic.tpl b/public/templates/topic.tpl index a2271ea2ac..e9402b7f82 100644 --- a/public/templates/topic.tpl +++ b/public/templates/topic.tpl @@ -10,7 +10,7 @@
  • - + 2432
    diff --git a/src/posts.js b/src/posts.js index 5bc0d23410..58d14f5f9d 100644 --- a/src/posts.js +++ b/src/posts.js @@ -43,19 +43,22 @@ var RDB = require('./redis.js'), timestamp = replies[2]; user.get_usernames_by_uids(uid, function(userNames) { - var posts = []; - for (var i=0, ii=content.length; i