Skip to content

Node.js based forum software built for the modern web

closes #99

Baris Soner Usakli7ff6cd9cb285
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);