Fixed topic read status check.

This commit is contained in:
flash 2023-09-06 11:19:04 +00:00
parent 1da6470928
commit 2d0f083e1a

View file

@ -314,7 +314,7 @@ foreach($postInfos as $postInfo) {
$canReply = !$topicIsArchived && !$topicIsLocked && !$topicIsDeleted && $perms->check(Perm::F_POST_CREATE);
if(!$forum->checkUserHasReadTopic($userInfo, $topicInfo))
if(!$forum->checkUserHasReadTopic($currentUser, $topicInfo))
$forum->incrementTopicView($topicInfo);
$forum->updateUserReadTopic($currentUser, $topicInfo);