diff options
Diffstat (limited to 'src/application/actions/viewuser')
-rw-r--r-- | src/application/actions/viewuser/get.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application/actions/viewuser/get.php b/src/application/actions/viewuser/get.php index e6dac43..55be586 100644 --- a/src/application/actions/viewuser/get.php +++ b/src/application/actions/viewuser/get.php @@ -4,7 +4,7 @@ use mystic\forum\orm\Attachment; use mystic\forum\orm\Post; use mystic\forum\orm\Topic; -$posts = $db->fetchCustom(Post::class, 'WHERE author_id = $1 ORDER BY post_date DESC', [ $userId ]); +$posts = $db->fetchCustom(Post::class, 'WHERE author_id = $1 AND deleted = false ORDER BY post_date DESC', [ $userId ]); $topics = []; $attachments = []; foreach ($posts as $item) { |