mirror of
https://github.com/swissmakers/swiss-datashare.git
synced 2026-04-05 07:47:01 +02:00
feat: add "creatorEmail" config bariable to share recipient email message
This commit is contained in:
@@ -84,7 +84,7 @@ const configVariables: ConfigVariables = {
|
|||||||
shareRecipientsMessage: {
|
shareRecipientsMessage: {
|
||||||
type: "text",
|
type: "text",
|
||||||
defaultValue:
|
defaultValue:
|
||||||
"Hey!\n\n{creator} shared some files with you, view or download the files with this link: {shareUrl}\n\nThe share will expire {expires}.\n\nNote: {desc}\n\nShared securely with Pingvin Share 🐧",
|
"Hey!\n\n{creator} ({creatorEmail}) shared some files with you, view or download the files with this link: {shareUrl}\n\nThe share will expire {expires}.\n\nNote: {desc}\n\nShared securely with Pingvin Share 🐧",
|
||||||
},
|
},
|
||||||
reverseShareSubject: {
|
reverseShareSubject: {
|
||||||
type: "string",
|
type: "string",
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export class EmailService {
|
|||||||
.get("email.shareRecipientsMessage")
|
.get("email.shareRecipientsMessage")
|
||||||
.replaceAll("\\n", "\n")
|
.replaceAll("\\n", "\n")
|
||||||
.replaceAll("{creator}", creator?.username ?? "Someone")
|
.replaceAll("{creator}", creator?.username ?? "Someone")
|
||||||
|
.replaceAll("{creatorEmail}", creator?.email ?? "")
|
||||||
.replaceAll("{shareUrl}", shareUrl)
|
.replaceAll("{shareUrl}", shareUrl)
|
||||||
.replaceAll("{desc}", description ?? "No description")
|
.replaceAll("{desc}", description ?? "No description")
|
||||||
.replaceAll(
|
.replaceAll(
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ export default {
|
|||||||
"Subject of the email which gets sent to the share recipients.",
|
"Subject of the email which gets sent to the share recipients.",
|
||||||
"admin.config.email.share-recipients-message": "Share recipients message",
|
"admin.config.email.share-recipients-message": "Share recipients message",
|
||||||
"admin.config.email.share-recipients-message.description":
|
"admin.config.email.share-recipients-message.description":
|
||||||
"Message which gets sent to the share recipients. Available variables:\n {creator} - The username of the creator of the share\n {shareUrl} - The URL of the share\n {desc} - The description of the share\n {expires} - The expiration date of the share\n These variables will be replaced with the actual value.",
|
"Message which gets sent to the share recipients. Available variables:\n {creator} - The username of the creator of the share\n {creatorEmail} - The email of the creator of the share\n {shareUrl} - The URL of the share\n {desc} - The description of the share\n {expires} - The expiration date of the share\n These variables will be replaced with the actual value.",
|
||||||
"admin.config.email.reverse-share-subject": "Reverse share subject",
|
"admin.config.email.reverse-share-subject": "Reverse share subject",
|
||||||
"admin.config.email.reverse-share-subject.description":
|
"admin.config.email.reverse-share-subject.description":
|
||||||
"Subject of the sent email when someone created a share with your reverse share link.",
|
"Subject of the sent email when someone created a share with your reverse share link.",
|
||||||
|
|||||||
Reference in New Issue
Block a user