mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 11:58:27 +00:00
We are pushing /notification-alert/#{user_id} and /notification/#{user_id} messages to MessageBus from both PostAlerter and User#publish_notification_state. This can cause memory issues on large sites with many users. This commit stems the bleeding by only sending these alert messages if the user in question has been seen in the last 30 days, which eliminates a large chunk of users on some sites.