Skip to content

Node.js based forum software built for the modern web

fix: #7866, show correct title based on digest interval

Barış Soner Uşaklı547bb4966da9
diff --git a/public/language/en-GB/email.json b/public/language/en-GB/email.json
index 39cf56416b..5a51ef2230 100644
--- a/public/language/en-GB/email.json
+++ b/public/language/en-GB/email.json
@@ -35,7 +35,9 @@
"digest.week": "week",
"digest.month": "month",
"digest.subject": "Digest for %1",
- "digest.title": "Your Daily Digest",
+ "digest.title.day": "Your Daily Digest",
+ "digest.title.week": "Your Weekly Digest",
+ "digest.title.month": "Your Monthly Digest",
"notif.chat.subject": "New chat message received from %1",
"notif.chat.cta": "Click here to continue the conversation",
diff --git a/src/views/emails/digest.tpl b/src/views/emails/digest.tpl
index 549cdd8b79..1f1de51d4e 100644
--- a/src/views/emails/digest.tpl
+++ b/src/views/emails/digest.tpl
@@ -14,7 +14,7 @@
</tr>
<tr>
<td style="padding: 0px 40px; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 15px; line-height: 20px; color: #555555;">
- <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:digest.title]]</h1>
+ <h1 style="margin: 0 0 10px 0; font-family: -apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-size: 18px; line-height: 21px; color: #aaaaaa; font-weight: normal;">[[email:digest.title.{interval}]]</h1>
</td>
</tr>
<!-- IF notifications.length -->