diff --git a/server/src/core/server/locales/en-US/common.ftl b/server/src/core/server/locales/en-US/common.ftl
index 6417ebfe78..0414396ecc 100644
--- a/server/src/core/server/locales/en-US/common.ftl
+++ b/server/src/core/server/locales/en-US/common.ftl
@@ -54,6 +54,33 @@ notifications-illegalContentReportReviewed-description =
containing illegal content. After reviewing your report, our moderation
team has decided this comment { $decision }.
+notifications-commentRejected-title =
+ Your comment has been rejected and removed from our site
+notifications-commentRejected-description =
+ Our moderators have reviewed your comment and determined your comment contains content that violates our community guidelines or terms of service.
+
+
+ { $details }
+
+notifications-commentRejected-details-general =
+ REASON FOR REMOVAL
+ { $reason }
+ ADDITIONAL EXPLANATION
+ { $explanation }
+
+notifications-commentRejected-details-illegalContent =
+ REASON FOR REMOVAL
+ { $reason }
+ LEGAL GROUNDS
+ { $grounds }
+ ADDITIONAL EXPLANATION
+ { $explanation }
+
+notification-reasonForRemoval-illegal = Illegal content
+
+notifications-commentRejected-details-notFound =
+ Details for this rejection cannot be found.
+
# Notifications (old)
notifications-commentWasFeatured-title = Comment was featured
diff --git a/server/src/core/server/services/notifications/internal/context.ts b/server/src/core/server/services/notifications/internal/context.ts
index 0bd5562799..2730858548 100644
--- a/server/src/core/server/services/notifications/internal/context.ts
+++ b/server/src/core/server/services/notifications/internal/context.ts
@@ -310,34 +310,49 @@ export class InternalNotificationContext {
legal: DSALegality | undefined,
now: Date
) {
- const reason = legal
+ const title = this.translatePhrase(
+ lang,
+ "notifications-commentRejected-title",
+ "Your comment has been rejected and removed from our site"
+ );
+
+ const reasonForRemoval = this.translatePhrase(
+ lang,
+ "notification-reasonForRemoval-illegal",
+ "Illegal content"
+ );
+
+ const details = legal
? this.translatePhrase(
lang,
- "notifications-dsaIllegalRejectedReason-information",
- `Grounds:
- ${legal?.grounds}
- Explanation:
- ${legal?.explanation}`,
+ "notifications-commentRejected-details-illegalContent",
+ `REASON FOR REMOVAL
+ ${reasonForRemoval}
+ LEGAL GROUNDS
+ ${legal.grounds}
+ ADDITIONAL EXPLANATION
+ ${legal.explanation}`,
{
- grounds: legal.grounds,
- explanation: legal.explanation,
+ reason: reasonForRemoval,
+ grounds: legal.grounds ?? "",
+ explanation: legal.explanation ?? "",
}
)
: this.translatePhrase(
lang,
- "notifications-dsaIllegalRejectedReason-informationNotFound",
- "The reasoning for this decision cannot be found."
+ "notifications-commentRejected-details-notFound",
+ "Details for this rejection cannot be found."
);
- const body = this.translatePhrase(
+ const description = this.translatePhrase(
lang,
- "notifications-commentWasRejectedAndIllegal-body",
- `The comment ${comment.id} was rejected for containing illegal content.
- The reason of which was: ${reason}
- `,
+ "notifications-commentRejected-description",
+ `Our moderators have reviewed your comment determined your comment contains
+ violates our community guidelines or terms of service.
+
+ ${details}`,
{
- commentID: comment.id,
- reason,
+ details,
}
).replace("\n", "
");
@@ -347,12 +362,8 @@ export class InternalNotificationContext {
type,
createdAt: now,
ownerID: targetUserID,
- title: this.translatePhrase(
- lang,
- "notifications-commentWasRejectedAndIllegal-title",
- "Comment was deemed to contain illegal content and was rejected"
- ),
- body,
+ title,
+ body: description,
commentID: comment.id,
commentStatus: comment.status,
});