summaryrefslogtreecommitdiff
path: root/src/application/actions/viewuser/get.php
diff options
context:
space:
mode:
authorJonas Kohl2024-12-10 16:04:04 +0100
committerJonas Kohl2024-12-10 16:04:04 +0100
commit2953997e1511a31c45f67147cc64be791f4265a0 (patch)
treee4eefd610e8c68f5c6a8375d738b0c4984ed341a /src/application/actions/viewuser/get.php
parent754ff1fda76b89da6793b5e553bd127cb4076571 (diff)
Don't include deleted posts in post list on profilev0.6.2
Diffstat (limited to 'src/application/actions/viewuser/get.php')
-rw-r--r--src/application/actions/viewuser/get.php2
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) {