0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Updated use of "blog" in variable to "site"

no issue

- The coding standard/preference in variable naming is to go with "site" where possible when referring to current instance instead of "blog".
This commit is contained in:
Naz 2021-08-12 13:56:33 +04:00
parent 6dba643ef9
commit fa13ff2798

View file

@ -26,8 +26,8 @@ function getFromAddress(requestedFromAddress) {
// If we do have a from address, and it's just an email
if (validator.isEmail(address, {require_tld: false})) {
const defaultBlogTitle = settingsCache.get('title') ? settingsCache.get('title').replace(/"/g, '\\"') : i18n.t('common.mail.title', {domain: getDomain()});
return `"${defaultBlogTitle}" <${address}>`;
const defaultSiteTitle = settingsCache.get('title') ? settingsCache.get('title').replace(/"/g, '\\"') : i18n.t('common.mail.title', {domain: getDomain()});
return `"${defaultSiteTitle}" <${address}>`;
}
return address;