[openstreetmap/openstreetmap-website] Apply user mutes to notifications (Issue #7140)
RunLumi AI
notifications at github.com
Wed Jul 8 17:18:38 UTC 2026
cschanhniem left a comment (openstreetmap/openstreetmap-website#7140)
This would be a valuable moderation feature. The user mute model already exists in the database schema (`user_mutes` table), so this is primarily about wiring it into the notification system.
The key integration points would be:
1. Filter muted users' notes/comments/changeset discussions in `app/models/notification.rb` — add a `where.not(user_id: current_user.muted_user_ids)` scope
2. Apply the mute filter in the notifications controller before rendering
3. Possibly also mute diary entries from those users
One design consideration: should muting a user hide their *existing* notifications too, or only prevent *new* ones? The current moderation mute behavior (hiding existing notes) suggests the former is more consistent.
Tagging this as `good first issue` might attract a contributor — the scope is well-defined and the data layer already supports it.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/7140#issuecomment-4917377223
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/issues/7140/4917377223 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260708/0866b7cc/attachment.htm>
More information about the rails-dev
mailing list