Exclude deleted posts from the latest posts fetcher.
This commit is contained in:
parent
d7713b27c1
commit
3686429df9
1 changed files with 1 additions and 0 deletions
|
@ -342,6 +342,7 @@ function forum_latest_post(int $forumId, int $userId): array
|
|||
LEFT JOIN `msz_roles` AS r
|
||||
ON r.`role_id` = u.`display_role`
|
||||
WHERE p.`forum_id` = :forum_id
|
||||
AND p.`post_deleted` IS NULL
|
||||
ORDER BY p.`post_id` DESC
|
||||
');
|
||||
$getLastPost->bindValue('forum_id', $forumId);
|
||||
|
|
Loading…
Reference in a new issue