- Issue created by @s_castro
- 🇨🇴Colombia s_castro
This is the patch implementing the proposed solution. It worked for me.
-
jurgenhaas →
committed 3249917e on 2.2.x
Issue #3350920 by s_castro: Blocked users get notifications when...
-
jurgenhaas →
committed 3249917e on 2.2.x
- 🇩🇪Germany jurgenhaas Gottmadingen
This is great, thanks a lot @s_castro for reporting and fixing this. I've just merged your patch.
This triggered some thoughts also related to blocked users:
- Should we delete subscriptions for users that get blocked or deleted?
- Should we delete notifications for users that get blocked or deleted? Or should we at least mark them as delivered?
- 🇨🇴Colombia s_castro
Answering your questions with my opinion:
Should we delete subscriptions for users that get blocked or deleted?
The subscriptions should be deactivated when the user gets blocked (and reactivated again if the account is reactivated). When the user gets deleted the subscriptions should be deleted as well.Should we delete notifications for users that get blocked or deleted? Or should we at least mark them as delivered?
I think marking them as delivered is okay as long as the subscriptions are blocked or removed and new notifications are not created. - Assigned to jurgenhaas
-
jurgenhaas →
committed 3e74fa1c on 2.2.x
Issue #3350920 by s_castro, jurgenhaas: Blocked users get notifications...
-
jurgenhaas →
committed 3e74fa1c on 2.2.x
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 8:50am 2 April 2023 - 🇩🇪Germany jurgenhaas Gottmadingen
Here is what's now implemented:
- Prevent new subscription notifications for blocked users (done in patch from #2)
- Prevent new notifications for deleted or blocked users
- If a user gets blocked, all undelivered notifications for that user get marked as delivered
- If a user gets deleted, all notifications for that user get deleted
Subscription settings for each user are stored in user data. Therefore, they remain intact while a user is blocked and will be still present when the user gets re-activated. When a user gets deleted, their user data also gets deleted; hence the subscription settings will be deleted too.
Please have a look and set to RTBC when all is ok.
- 🇩🇪Germany jurgenhaas Gottmadingen
Marking as fixed as I'm publishing a new version and need to include this. Should there be any issue still, please open a new issue then.
- Status changed to Fixed
over 1 year ago 6:14am 19 April 2023 Automatically closed - issue fixed for 2 weeks with no activity.