v1.18.x
Baris Soner Usakli 12 years ago
parent 285e19fbbf
commit 7ff6cd9cb2

@ -226,7 +226,8 @@ var user = require('./../user.js'),
if(userData) { if(userData) {
user.isFollowing(callerUID, userData.theirid, function(isFollowing) { user.isFollowing(callerUID, userData.theirid, function(isFollowing) {
posts.getPostsByUid(userData.theirid, 0, 9, function(posts) { 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.isFollowing = isFollowing;
userData.signature = marked(userData.signature || ''); userData.signature = marked(userData.signature || '');
res.json(userData); res.json(userData);

Loading…
Cancel
Save