PaulB
Well-known member
- Affected version
- 2.2.7 Patch 1
- Alice creates a thread in forum 1.  The discussion_state is visible, so the forum'slast_post_*andlast_thread_*fields are updated.
- Bob creates a thread in forum 1 after Alice, but during the same second.  The discussion_state is moderatedordeleted. The latter state should never happen during thread creation in vanilla XF, but the former is common.
- Bob's thread information is displayed as the most recent post/thread for that forum in the forum list even for members who can't view the thread.
		PHP:
	
	if ($thread->last_post_date == $forum->last_post_date)
{
   $forum->fastUpdate([
      'last_post_id' => $post->post_id,
      'last_thread_id' => $post->thread_id
   ]);
} 
 
		 
 
		