`You can view it on ${videoUrl} ` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: channelName + ' just published a new video',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + channelName + ' just published a new video',
text
}
`Your ${followType} ${followingName} has a new subscriber: ${followerName}` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: 'New follower on your channel ' + followingName,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'New follower on your channel ' + followingName,
text
}
`Your instance has a new follower: ${actorFollow.ActorFollower.url}${awaitingApproval}` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: 'New instance follower',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'New instance follower',
text
}
`You can view it on ${videoUrl} ` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: `Your video ${video.name} is published`,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + `Your video ${video.name} is published`,
text
}
`You can view the imported video on ${videoUrl} ` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: `Your video import ${videoImport.getTargetIdentifier()} is finished`,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + `Your video import ${videoImport.getTargetIdentifier()} is finished`,
text
}
`See your videos import dashboard for more information: ${importUrl}` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: `Your video import ${videoImport.getTargetIdentifier()} encountered an error`,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + `Your video import ${videoImport.getTargetIdentifier()} encountered an error`,
text
}
`You can view it on ${commentUrl} ` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: 'New comment on your video ' + video.name,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'New comment on your video ' + video.name,
text
}
`You can view the comment on ${commentUrl} ` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: 'Mention on video ' + video.name,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Mention on video ' + video.name,
text
}
const text = `Hi,\n\n` +
`${WEBSERVER.HOST} received an abuse for the following video ${videoUrl}\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: '[PeerTube] Received a video abuse',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Received a video abuse',
text
}
`A full list of auto-blacklisted videos can be reviewed here: ${VIDEO_AUTO_BLACKLIST_URL}` +
`\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: '[PeerTube] An auto-blacklisted video is awaiting review',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'An auto-blacklisted video is awaiting review',
text
}
const text = `Hi,\n\n` +
`User ${user.username} just registered on ${WEBSERVER.HOST} PeerTube instance.\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: '[PeerTube] New user registration on ' + WEBSERVER.HOST,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'New user registration on ' + WEBSERVER.HOST,
text
}
blockedString +
'\n\n' +
'Cheers,\n' +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: `[PeerTube] Video ${videoName} blacklisted`,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + `Video ${videoName} blacklisted`,
text
}
`Your video ${video.name} (${videoUrl}) on ${WEBSERVER.HOST} has been unblacklisted.` +
'\n\n' +
'Cheers,\n' +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to,
- subject: `[PeerTube] Video ${video.name} unblacklisted`,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + `Video ${video.name} unblacklisted`,
text
}
`Please follow this link to reset it: ${resetPasswordUrl}\n\n` +
`If you are not the person who initiated this request, please ignore this email.\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to: [ to ],
- subject: 'Reset your PeerTube password',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Reset your password',
text
}
`Please follow this link to verify this email belongs to you: ${verifyEmailUrl}\n\n` +
`If you are not the person who initiated this request, please ignore this email.\n\n` +
`Cheers,\n` +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const emailPayload: EmailPayload = {
to: [ to ],
- subject: 'Verify your PeerTube email',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Verify your email',
text
}
blockedString +
'\n\n' +
'Cheers,\n' +
- `PeerTube.`
+ `${CONFIG.EMAIL.BODY.SIGNATURE}`
const to = user.email
const emailPayload: EmailPayload = {
to: [ to ],
- subject: '[PeerTube] Account ' + blockedWord,
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Account ' + blockedWord,
text
}
fromDisplayName: fromEmail,
replyTo: fromEmail,
to: [ CONFIG.ADMIN.EMAIL ],
- subject: '[PeerTube] Contact form submitted',
+ subject: CONFIG.EMAIL.OBJECT.PREFIX + 'Contact form submitted',
text
}