diff --git a/backend/.env.template b/backend/.env.template index 4d7ae42d2..eb710101e 100644 --- a/backend/.env.template +++ b/backend/.env.template @@ -26,6 +26,8 @@ SMTP_DKIM_PRIVATKEY= # SMTP_IGNORE_TLS=true # SMTP_USERNAME= # SMTP_PASSWORD= +# SMTP_MAX_CONNECTIONS=1 +# SMTP_MAX_MESSAGES= 10 JWT_SECRET="b/&&7b78BF&fv/Vd" JWT_EXPIRES="2y" diff --git a/backend/src/emails/__snapshots__/sendChatMessageMail.spec.ts.snap b/backend/src/emails/__snapshots__/sendChatMessageMail.spec.ts.snap index 786bad9c0..67c141c0e 100644 --- a/backend/src/emails/__snapshots__/sendChatMessageMail.spec.ts.snap +++ b/backend/src/emails/__snapshots__/sendChatMessageMail.spec.ts.snap @@ -91,7 +91,7 @@ footer {

Hello chatReceiver,

-

you have received a new chat message from chatSender. +

you have received a new chat message from chatSender.

Show Chat

See you soon on ocelot.social!

@@ -109,7 +109,7 @@ footer { "text": "HELLO CHATRECEIVER, you have received a new chat message from chatSender -[http://webapp:3000/user/chatSender/chatsender]. +[http://webapp:3000/profile/chatSender/chatsender]. Show Chat [http://webapp:3000/chat] @@ -218,7 +218,7 @@ footer {

Hallo chatReceiver,

-

du hast eine neue Chat-Nachricht von chatSender erhalten. +

du hast eine neue Chat-Nachricht von chatSender erhalten.

Chat anzeigen

Bis bald bei ocelot.social!

@@ -236,7 +236,7 @@ footer { "text": "HALLO CHATRECEIVER, du hast eine neue Chat-Nachricht von chatSender -[http://webapp:3000/user/chatSender/chatsender] erhalten. +[http://webapp:3000/profile/chatSender/chatsender] erhalten. Chat anzeigen [http://webapp:3000/chat] diff --git a/backend/src/emails/__snapshots__/sendNotificationMail.spec.ts.snap b/backend/src/emails/__snapshots__/sendNotificationMail.spec.ts.snap index 7fcf4d833..05ec17e94 100644 --- a/backend/src/emails/__snapshots__/sendNotificationMail.spec.ts.snap +++ b/backend/src/emails/__snapshots__/sendNotificationMail.spec.ts.snap @@ -91,7 +91,7 @@ footer {

Hello Jenny Rostock,

-

your role in the group “The Group” has been changed. Click on the button to view this group:

View group +

your role in the group “The Group” has been changed. Click on the button to view this group:

View group

See you soon on ocelot.social!

– The ocelot.social Team


@@ -110,7 +110,7 @@ footer { your role in the group “The Group” has been changed. Click on the button to view this group: -View group [http://webapp:3000/group/g1/the-group] +View group [http://webapp:3000/groups/g1/the-group] See you soon on ocelot.social [https://ocelot.social]! @@ -217,7 +217,7 @@ footer {

Hello Jenny Rostock,

-

Peter Lustig commented on a post that you are observing with the title “New Post”. Click on the button to view this comment: +

Peter Lustig commented on a post that you are observing with the title “New Post”. Click on the button to view this comment:

View comment

See you soon on ocelot.social!

@@ -234,9 +234,9 @@ footer { "subject": "ocelot.social – Notification: New comment on post", "text": "HELLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] commented on a post that -you are observing with the title “New Post”. Click on the button to view this -comment: +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] commented on a post +that you are observing with the title “New Post”. Click on the button to view +this comment: View comment [http://webapp:3000/post/p1/new-post#commentId-c1] @@ -473,7 +473,7 @@ footer {

Hello Jenny Rostock,

-

Peter Lustig mentioned you in a comment to the post with the title “New Post”. Click on the button to view this comment: +

Peter Lustig mentioned you in a comment to the post with the title “New Post”. Click on the button to view this comment:

View comment

See you soon on ocelot.social!

@@ -490,7 +490,7 @@ footer { "subject": "ocelot.social – Notification: Mentioned in comment", "text": "HELLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] mentioned you in a +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] mentioned you in a comment to the post with the title “New Post”. Click on the button to view this comment: @@ -977,8 +977,8 @@ footer {

Hello Jenny Rostock,

-

Peter Lustig joined the group “The Group”. Click on the button to view this group: -

View group +

Peter Lustig joined the group “The Group”. Click on the button to view this group: +

View group

See you soon on ocelot.social!

– The ocelot.social Team


@@ -994,10 +994,10 @@ footer { "subject": "ocelot.social – Notification: User joined group", "text": "HELLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] joined the group “The +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] joined the group “The Group”. Click on the button to view this group: -View group [http://webapp:3000/group/g1/the-group] +View group [http://webapp:3000/groups/g1/the-group] See you soon on ocelot.social [https://ocelot.social]! @@ -1104,8 +1104,8 @@ footer {

Hello Jenny Rostock,

-

Peter Lustig left the group “The Group”. Click on the button to view this group: -

View group +

Peter Lustig left the group “The Group”. Click on the button to view this group: +

View group

See you soon on ocelot.social!

– The ocelot.social Team


@@ -1121,10 +1121,10 @@ footer { "subject": "ocelot.social – Notification: User left group", "text": "HELLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] left the group “The +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] left the group “The Group”. Click on the button to view this group: -View group [http://webapp:3000/group/g1/the-group] +View group [http://webapp:3000/groups/g1/the-group] See you soon on ocelot.social [https://ocelot.social]! @@ -1231,7 +1231,7 @@ footer {

Hallo Jenny Rostock,

-

deine Rolle in der Gruppe „The Group“ wurde geändert. Klicke auf den Knopf, um diese Gruppe zu sehen:

Gruppe ansehen +

deine Rolle in der Gruppe „The Group“ wurde geändert. Klicke auf den Knopf, um diese Gruppe zu sehen:

Gruppe ansehen

Bis bald bei ocelot.social!

– Dein ocelot.social Team


@@ -1250,7 +1250,7 @@ footer { deine Rolle in der Gruppe „The Group“ wurde geändert. Klicke auf den Knopf, um diese Gruppe zu sehen: -Gruppe ansehen [http://webapp:3000/group/g1/the-group] +Gruppe ansehen [http://webapp:3000/groups/g1/the-group] Bis bald bei ocelot.social [https://ocelot.social]! @@ -1357,7 +1357,7 @@ footer {

Hallo Jenny Rostock,

-

Peter Lustig hat einen Beitrag den du beobachtest mit dem Titel „New Post“ kommentiert. Klicke auf den Knopf, um diesen Kommentar zu sehen: +

Peter Lustig hat einen Beitrag den du beobachtest mit dem Titel „New Post“ kommentiert. Klicke auf den Knopf, um diesen Kommentar zu sehen:

Kommentar ansehen

Bis bald bei ocelot.social!

@@ -1374,8 +1374,8 @@ footer { "subject": "ocelot.social – Benachrichtigung: Neuer Kommentar zu Beitrag", "text": "HALLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] hat einen Beitrag den du -beobachtest mit dem Titel „New Post“ kommentiert. Klicke auf den Knopf, um +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] hat einen Beitrag den +du beobachtest mit dem Titel „New Post“ kommentiert. Klicke auf den Knopf, um diesen Kommentar zu sehen: Kommentar ansehen [http://webapp:3000/post/p1/new-post#commentId-c1] @@ -1613,7 +1613,7 @@ footer {

Hallo Jenny Rostock,

-

Peter Lustig hat dich in einem Kommentar zu dem Beitrag mit dem Titel „New Post“ erwähnt. Klicke auf den Knopf, um den Kommentar zu sehen: +

Peter Lustig hat dich in einem Kommentar zu dem Beitrag mit dem Titel „New Post“ erwähnt. Klicke auf den Knopf, um den Kommentar zu sehen:

Kommentar ansehen

Bis bald bei ocelot.social!

@@ -1630,7 +1630,7 @@ footer { "subject": "ocelot.social – Benachrichtigung: Erwähnung in Kommentar", "text": "HALLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] hat dich in einem +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] hat dich in einem Kommentar zu dem Beitrag mit dem Titel „New Post“ erwähnt. Klicke auf den Knopf, um den Kommentar zu sehen: @@ -2117,8 +2117,8 @@ footer {

Hallo Jenny Rostock,

-

Peter Lustig ist der Gruppe „The Group“ beigetreten. Klicke auf den Knopf, um diese Gruppe zu sehen: -

Gruppe ansehen +

Peter Lustig ist der Gruppe „The Group“ beigetreten. Klicke auf den Knopf, um diese Gruppe zu sehen: +

Gruppe ansehen

Bis bald bei ocelot.social!

– Dein ocelot.social Team


@@ -2134,10 +2134,10 @@ footer { "subject": "ocelot.social – Benachrichtigung: Nutzer tritt Gruppe bei", "text": "HALLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] ist der Gruppe „The +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] ist der Gruppe „The Group“ beigetreten. Klicke auf den Knopf, um diese Gruppe zu sehen: -Gruppe ansehen [http://webapp:3000/group/g1/the-group] +Gruppe ansehen [http://webapp:3000/groups/g1/the-group] Bis bald bei ocelot.social [https://ocelot.social]! @@ -2244,8 +2244,8 @@ footer {

Hallo Jenny Rostock,

-

Peter Lustig hat die Gruppe „The Group“ verlassen. Klicke auf den Knopf, um diese Gruppe zu sehen: -

Gruppe ansehen +

Peter Lustig hat die Gruppe „The Group“ verlassen. Klicke auf den Knopf, um diese Gruppe zu sehen: +

Gruppe ansehen

Bis bald bei ocelot.social!

– Dein ocelot.social Team


@@ -2261,10 +2261,10 @@ footer { "subject": "ocelot.social – Benachrichtigung: Nutzer verlässt Gruppe", "text": "HALLO JENNY ROSTOCK, -Peter Lustig [http://webapp:3000/user/u2/peter-lustig] hat die Gruppe „The +Peter Lustig [http://webapp:3000/profile/u2/peter-lustig] hat die Gruppe „The Group“ verlassen. Klicke auf den Knopf, um diese Gruppe zu sehen: -Gruppe ansehen [http://webapp:3000/group/g1/the-group] +Gruppe ansehen [http://webapp:3000/groups/g1/the-group] Bis bald bei ocelot.social [https://ocelot.social]! diff --git a/backend/src/emails/sendEmail.ts b/backend/src/emails/sendEmail.ts index 580cc2f58..6c44ae5e7 100644 --- a/backend/src/emails/sendEmail.ts +++ b/backend/src/emails/sendEmail.ts @@ -115,7 +115,7 @@ export const sendNotificationMail = async (notification: any): Promise