diff --git a/public/src/forum/category.js b/public/src/forum/category.js
index 799044de92..08f9602fa3 100644
--- a/public/src/forum/category.js
+++ b/public/src/forum/category.js
@@ -77,11 +77,15 @@
for (var i=0,numPosts=posts.length; i
' + - '' + posts[i].username + ': ' + posts[i].content + - '
' + - 'posted ' + utils.relativeTime(posts[i].timestamp) + ' ago'; + + + li.innerHTML = '' + + '' + posts[i].username + ': ' + posts[i].content + + '
' + + 'posted ' + utils.relativeTime(posts[i].timestamp) + ' ago' + + ''; frag.appendChild(li.cloneNode(true)); recent_replies.appendChild(frag); diff --git a/src/posts.js b/src/posts.js index 2cdb50e61e..dd28e6c64e 100644 --- a/src/posts.js +++ b/src/posts.js @@ -61,7 +61,7 @@ marked.setOptions({ var returnData = []; function getPostSummary(pid, callback) { - Posts.getPostFields(pid, ['pid', 'content', 'uid', 'timestamp', 'deleted'], function(postData) { + Posts.getPostFields(pid, ['pid', 'tid', 'content', 'uid', 'timestamp', 'deleted'], function(postData) { Posts.addUserInfoToPost(postData, function() { if(postData.deleted !== '1') { diff --git a/src/routes/user.js b/src/routes/user.js index f1d60fc7ab..b6670c9bf6 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -227,7 +227,9 @@ var user = require('./../user.js'), user.isFollowing(callerUID, userData.theirid, function(isFollowing) { posts.getPostsByUid(userData.theirid, 0, 9, function(posts) { - userData.posts = posts.filter(function(p) {return p.deleted !== "1";}); + userData.posts = posts.filter(function(p) { + console.log(typeof p.deleted); + return p.deleted !== "1";}); userData.isFollowing = isFollowing; userData.signature = marked(userData.signature || ''); res.json(userData);