Explorar o código

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

Eric Knibbe %!s(int64=4) %!d(string=hai) anos
pai
achega
d04e33eb6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/core/mail.js

+ 1 - 1
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