FIX: Skip sending PM email for user silence (#12240)

We were sending 2 emails for user silencing if a message was provided in the UI. Also always send email for user silence and user suspend with reason regardless of whether message provided.
This commit is contained in:
Martin Brennan
2021-03-02 09:18:09 +10:00
committed by GitHub
parent 09b05c4f96
commit 6b4d066834
6 changed files with 19 additions and 18 deletions

View File

@@ -3643,9 +3643,7 @@ en:
text_body_template: |
You have been suspended from the forum until %{suspended_till}.
%{reason}
%{message}
Reason - %{reason}
account_silenced:
title: "Account Silenced"
@@ -3653,9 +3651,7 @@ en:
text_body_template: |
You have been silenced from the forum until %{silenced_till}.
%{reason}
%{message}
Reason - %{reason}
account_exists:
title: "Account already exists"