From 7ff6cd9cb285a3883fcc4d3d2ab89c9485fbe56c Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Thu, 18 Jul 2013 15:44:42 -0400 Subject: [PATCH] closes #99 --- src/routes/user.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/user.js b/src/routes/user.js index 530e15071f..95c3fc6f2c 100644 --- a/src/routes/user.js +++ b/src/routes/user.js @@ -226,7 +226,8 @@ var user = require('./../user.js'), if(userData) { user.isFollowing(callerUID, userData.theirid, function(isFollowing) { posts.getPostsByUid(userData.theirid, 0, 9, function(posts) { - userData.posts = posts; + + userData.posts = posts.filter(function(p) {return p.deleted !== "1";});; userData.isFollowing = isFollowing; userData.signature = marked(userData.signature || ''); res.json(userData);