Skip to content

fix(mail): embed image logo only when using useTemplate - #65422

Merged
susnux merged 1 commit into
masterfrom
fix/embedded-logo
Oct 12, 2026
Merged

susnux merged 1 commit into
masterfrom
fix/embedded-logo

Conversation

@salmart-dev

@salmart-dev salmart-dev commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

A regression introduced by #62933 left emails from apps that do not use IMessage::useTemplate without a Nextcloud logo. This PR uses the logo URL by default and replaces it with cid:logo only when the image needs to be attached to the mail and is found in $inlineImages.

NOTE: backports need to get a corrected @since annotation also for the changes introduced in #62933

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@salmart-dev salmart-dev self-assigned this Oct 12, 2026
@salmart-dev salmart-dev added the 3. to review Waiting for reviews label Oct 12, 2026
@salmart-dev salmart-dev added this to the Nextcloud 36 milestone Oct 12, 2026
The reason for this is that the change that introduced the embedded logo
broke the logo for all apps that did not call useTemplate.

This change uses the logo url by default and replaces it with cid:logo
only when the image is actually attached to the mail.

Signed-off-by: Salvatore Martire <4652631+salmart-dev@users.noreply.github.com>
Assisted-by: ClaudeCode:claude-opus-5-5
@salmart-dev
salmart-dev marked this pull request as ready for review October 12, 2026 13:53
@salmart-dev
salmart-dev requested a review from a team as a code owner October 12, 2026 13:53
@salmart-dev
salmart-dev requested review from icewind1991, leftybournes, provokateurin and sorbaugh and removed request for a team October 12, 2026 13:53
@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable35

@salmart-dev

Copy link
Copy Markdown
Contributor Author

/backport to stable34

@susnux
susnux merged commit 09fe3dd into master Oct 12, 2026
185 checks passed
@susnux
susnux deleted the fix/embedded-logo branch October 12, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: logo missing from emails from the guest app (and any app that does not call useTemplate)

4 participants