fix: dont show delete posts on profile

This commit is contained in:
Barış Soner Uşaklı
2019-06-24 17:47:25 -04:00
parent 6a7bc1c5fb
commit e48c7cd717

View File

@@ -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);
}