Dont send email notifications to banned users (fixes #1251) #126

Merged
dessalines merged 2 commits from dont-email-banned-user into main 2020-11-05 19:14:52 +00:00
Owner

Havent tested this yet.

Havent tested this yet.
Owner

I'd rather do this instead: https://github.com/LemmyNet/lemmy/issues/1255

Reason, a banned user might want to remove their email, matrix id, change their bio to remove identifying info, etc.

I'd rather do this instead: https://github.com/LemmyNet/lemmy/issues/1255 Reason, a banned user might want to remove their email, matrix id, change their bio to remove identifying info, etc.
Author
Owner

Regardless, there is no reason to send an email notification to a user who is banned and cant reply to the comment anyway. And I'm sure that not everyone is going to manually remove their email after being banned (they might not know that its possible).

I forgot to do the same change for private message notifications, best squash before merging.

Regardless, there is no reason to send an email notification to a user who is banned and cant reply to the comment anyway. And I'm sure that not everyone is going to manually remove their email after being banned (they might not know that its possible). I forgot to do the same change for private message notifications, best squash before merging.
Owner

Gotcha, I agree, plus you cleaned up my repeated code here too.

Gotcha, I agree, plus you cleaned up my repeated code here too.
dessalines merged commit 60517f8471 into main 2020-11-05 19:14:52 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: LemmyNet/lemmy#126
No description provided.