From e48c7cd71786e92afaa72b89b4a7b5733bd4d61a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Mon, 24 Jun 2019 17:47:25 -0400 Subject: [PATCH] fix: dont show delete posts on profile --- src/controllers/accounts/profile.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/controllers/accounts/profile.js b/src/controllers/accounts/profile.js index 2f8a60d31f..5907a0e115 100644 --- a/src/controllers/accounts/profile.js +++ b/src/controllers/accounts/profile.js @@ -122,6 +122,10 @@ function getPosts(callerUid, userData, setSuffix, callback) { function (pids, next) { posts.getPostSummaryByPids(pids, callerUid, { stripTags: false }, next); }, + function (posts, next) { + posts = posts.filter(p => p && !p.deleted); + next(null, posts); + }, ], callback); }