diff --git a/changelog/unreleased/remove-email-logo.md b/changelog/unreleased/remove-email-logo.md new file mode 100644 index 000000000..5082e9216 --- /dev/null +++ b/changelog/unreleased/remove-email-logo.md @@ -0,0 +1,6 @@ +Enhancement: Remove the email logo + +Remove the email logo + +https://github.com/owncloud/ocis/issues/6359 +https://github.com/owncloud/ocis/pull/6361 diff --git a/services/notifications/pkg/email/email.go b/services/notifications/pkg/email/email.go index 6879051e1..e4779779f 100644 --- a/services/notifications/pkg/email/email.go +++ b/services/notifications/pkg/email/email.go @@ -55,11 +55,6 @@ func RenderEmailTemplate(mt MessageTemplate, locale string, emailTemplatePath st if err != nil { return nil, err } - } else { - data, err = readImagesFs() - if err != nil { - return nil, err - } } return &channels.Message{ @@ -97,15 +92,6 @@ func executeTemplate(tpl *template.Template, vars any) (string, error) { return writer.String(), nil } -func readImagesFs() (map[string][]byte, error) { - dir := filepath.Join(imgDir) - entries, err := templatesFS.ReadDir(dir) - if err != nil { - return nil, err - } - return read(entries, templatesFS) -} - func readImages(emailTemplatePath string) (map[string][]byte, error) { dir := filepath.Join(emailTemplatePath, imgDir) entries, err := os.ReadDir(dir) diff --git a/services/notifications/pkg/email/templates/html/email.html.tmpl b/services/notifications/pkg/email/templates/html/email.html.tmpl index 5ba3adda1..f7345fe96 100644 --- a/services/notifications/pkg/email/templates/html/email.html.tmpl +++ b/services/notifications/pkg/email/templates/html/email.html.tmpl @@ -5,15 +5,6 @@ - - - - - - -
  - logo-mail -
 
  diff --git a/services/notifications/pkg/email/templates/html/img/logo-mail.gif b/services/notifications/pkg/email/templates/html/img/logo-mail.gif deleted file mode 100644 index c8bb0c7e5..000000000 Binary files a/services/notifications/pkg/email/templates/html/img/logo-mail.gif and /dev/null differ