2020-10-01, 07:59 PM
There is this check that is supposed to prevent sending notifications to users that haven't been online since they received the last notification.
inc/datahandlers/post.php:
$forum is loaded from datacache which excludes some fields:
That causes MyBB to send out way more notifications that it should and may flood users that have subscribed to a popular forum. I'm surprised nobody has complained about this yet.
inc/datahandlers/post.php:
AND u.lastactive > '{$forum['lastpost']}'
However the conditions is always true because $forum['lastpost'] is always 0.$forum is loaded from datacache which excludes some fields:
// Things we don't want to cache
$exclude = array("unapprovedthreads", "unapprovedposts", "threads", "posts", "lastpost", "lastposter", "lastposttid", "lastposteruid", "lastpostsubject", "deletedthreads", "deletedposts");
That causes MyBB to send out way more notifications that it should and may flood users that have subscribed to a popular forum. I'm surprised nobody has complained about this yet.