fix: use absolute URL for logo in email if path relative (#2628)

This commit is contained in:
Eric Knibbe 2020-11-11 11:39:16 -05:00 committed by GitHub
parent 0f948582a6
commit d04e33eb6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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