Exclude deleted posts from the latest posts fetcher.

This commit is contained in:
flash 2019-04-11 20:30:09 +02:00
parent d7713b27c1
commit 3686429df9

View file

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