-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prevent notifications for blocked users #13689
Prevent notifications for blocked users #13689
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This pull request does not contain a valid label. Please add one of the following labels: ['type: feature', 'type: change', 'type: fix', 'type: removal', 'target: developer-experience', 'type: internal']
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading it again it was what I had in mind. Thanks for the PR!
Also I realized that we have the same problem with deleted users:
- Sign in as "user@example.org"
- Check that I have the notifications sending frequency set to "daily"
- Delete my account
- Open a rails console and run "Decidim::User.where.not(deleted_at: nil).first.notifications_sending_frequency". See that it's daily
@alecslupu can you open another PR to fix this related bug? As I think we should handle that in another PR, I'll merge this as is. Thanks
* Block notifications for blocked users * Add tests for fix_blocked_user_notification task * Remove trailing whitespaces * Update RELEASE_NOTES.md * Update decidim-core/lib/tasks/upgrade/clean.rake * RELEASE_NOTES.md lint fix * Remove line 24 from RELEASE_NOTES.md * Apply suggestions from code review Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com> --------- Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro> Co-authored-by: Andrés Pereira de Lucena <andreslucena@users.noreply.github.com>
Prevent sending notifications to blocked users
📌 Related Issues
Testing
Previous conditions for "User X"
Steps to follow as a site administrator:
Expected behavior: