mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont show delete posts on profile
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user