summaryrefslogtreecommitdiff
path: root/packages/backend/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'packages/backend/src/core')
-rw-r--r--packages/backend/src/core/AbuseReportNotificationService.ts11
1 files changed, 7 insertions, 4 deletions
diff --git a/packages/backend/src/core/AbuseReportNotificationService.ts b/packages/backend/src/core/AbuseReportNotificationService.ts
index a67e5e19a7..307f22586e 100644
--- a/packages/backend/src/core/AbuseReportNotificationService.ts
+++ b/packages/backend/src/core/AbuseReportNotificationService.ts
@@ -93,10 +93,13 @@ export class AbuseReportNotificationService implements OnApplicationShutdown {
.filter(x => x != null),
);
- recipientEMailAddresses.push(
- ...(this.meta.email ? [this.meta.email] : []),
- ...(this.meta.maintainerEmail ? [this.meta.maintainerEmail] : []),
- );
+ if (this.meta.email) {
+ recipientEMailAddresses.push(this.meta.email);
+ }
+
+ if (this.meta.maintainerEmail) {
+ recipientEMailAddresses.push(this.meta.maintainerEmail);
+ }
return recipientEMailAddresses;
}