Browse Source
fix: use absolute URL for logo in email if path relative (#2628)
pull/2748/head
Eric Knibbe
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
server/core/mail.js
|
|
@ -56,7 +56,7 @@ module.exports = { |
|
|
|
subject: `${opts.subject} - ${WIKI.config.title}`, |
|
|
|
text: opts.text, |
|
|
|
html: _.get(this.templates, opts.template)({ |
|
|
|
logo: WIKI.config.logoUrl, |
|
|
|
logo: (WIKI.config.logoUrl.startsWith('http') ? '' : WIKI.config.host) + WIKI.config.logoUrl, |
|
|
|
siteTitle: WIKI.config.title, |
|
|
|
copyright: WIKI.config.company.length > 0 ? WIKI.config.company : 'Powered by Wiki.js', |
|
|
|
...opts.data |
|
|
|