Re: Latest post on board index: borked in 1.09
Reply #13 –
This is the relevant code:
// Determine a global most recent topic.
if ($this->_options['set_latest_post'] && !empty($row_board['poster_time']) && $row_board['poster_time'] > $this->_latest_post['timestamp'] && !$ignoreThisBoard)
$this->_latest_post = &$this->_current_boards[$isChild ? $row_board['id_parent'] : $row_board['id_board']]['last_post'];
if:
the latest_post is show, and
there is a poster_time associated to the latest post of a certain board, and
this poster_time is higher than the previous latest_post found, and
the board is not in ignore$ignoreThisBoard = in_array($row_board['id_board'], $this->_user['ignoreboards']);
then that post from that board becomes the next latest post.
This is inside the loop that populates the board index list.
I tend to think the only thing that could fail is the ignored board, because the time is show on both the posts, but it's there.
I spent also a bit of time following in real time the forum, and as expected the "recent posts" list is slightly slower to catch up (cache), but the latest post is always correct.
Dunno.
If you can identify a series of steps to reproduce the issue it would be best.