0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00

Added getSubject function for members emails

no-issue
This commit is contained in:
Fabien O'Carroll 2019-10-10 20:26:18 +07:00
parent 6f160518d1
commit 98f27c1c33

View file

@ -203,6 +203,18 @@ function createApiInstance() {
return ghostMailer.send(msg);
}
},
getSubject(type) {
const siteTitle = settingsCache.get('title');
switch (type) {
case 'subscribe':
return `📫 Confirm your subscription to ${siteTitle}`;
case 'signup':
return `🙌 Complete your sign up to ${siteTitle}!`;
case 'signin':
default:
return `🔑 Secure sign in link for ${siteTitle}`;
}
},
getText(url, type) {
switch (type) {
case 'subscribe':