Confirmed Approving a new thread in a moderated forum does not always trigger alerts for all users watching the forum

nocte

Well-known member
Licensed customer
Affected version
2.3.13
How to replicate:
  1. User B watches a forum (new threads)
  2. User A creates a thread (moderated)
  3. User A answers to a thread in the same forum
  4. User B views that thread with the new post
  5. Staff approves the new thread
  6. User B does not get notified
I assume the reason is this part of XF\Notifier\Post\AbstractWatch:

PHP:
        if ($userReadDate > $post->Thread->last_post_date)
        {
            return false;
        }

Once a forum is marked as read, any approved thread, that had been created before that last read time, does not trigger an alert anymore.
 
Back
Top Bottom