Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't display errors when SMTP is not configured

Chocobozzzeaaf316fe122
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index 42d7650ddb..bd10895308 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -132,7 +132,8 @@ class Emailer {
async sendMail (options: EmailPayload) {
if (!isEmailEnabled()) {
- throw new Error('Cannot send mail because SMTP is not configured.')
+ logger.info('Cannot send mail because SMTP is not configured.')
+ return
}
const fromDisplayName = options.from