Fixed UserAlert::_postSave can unexpectedly decrement alerts


Well-known member
Affected version
If you create an alert with it's view/read date set, it will blindly try to decrement the relevant counters instead of only on update.

Super-niche bug one of my add-ons has been hitting but was previously being masked by common alert count rebuilding which has scaling issues for some sites.
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XF release (2.2.13).

Change log:
Do not attempt to decrement alert counters when a new alert is inserted
There may be a delay before changes are rolled out to the XenForo Community.
Top Bottom