discourse/app/jobs
Selase Krakani 7ba115769a
DEV: Skip push notifications for active online users (#19502)
* DEV: Skip push notifications for active online users

Currently, users with active push subscriptions get push notifications
regardless of their "presence" on the site.

This change introduces a `push_notification_time_window_mins`
site setting which is used in conjunction with a user's `last_seen_at` to
determine if push notifications should be sent. A user is considered to
be actively online if their `last_seen_at` is within `push_notification_time_window_mins`
minutes. `push_notification_time_window_mins` is set to 10 by default.

* DEV: Remove client param for push_notification_time_window_mins site setting

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>

Co-authored-by: Bianca Nenciu <nbianca@users.noreply.github.com>
2022-12-19 20:17:40 +00:00
..
concerns DEV: enable frozen string literal on all files 2019-05-13 09:31:32 +08:00
onceoff DEV: Quote values when constructing SQL (#18827) 2022-11-01 14:05:13 -05:00
regular DEV: Skip push notifications for active online users (#19502) 2022-12-19 20:17:40 +00:00
scheduled FEATURE: Send notifications to admins when new features are released (#19460) 2022-12-15 20:12:53 +03:00
base.rb FIX: Uninitialized class variable error in sidekiq (#17227) 2022-06-24 14:17:39 +10:00