Page MenuHomePhabricator

Fix an issue where transactions in mail were always rendered as text
ClosedPublic

Authored by epriestley on Jan 14 2019, 7:31 PM.
Tags
None
Referenced Files
F14743215: D19968.id47664.diff
Mon, Jan 20, 4:39 PM
Unknown Object (File)
Tue, Dec 31, 1:24 PM
Unknown Object (File)
Tue, Dec 31, 8:33 AM
Unknown Object (File)
Mon, Dec 30, 4:09 PM
Unknown Object (File)
Mon, Dec 30, 12:34 AM
Unknown Object (File)
Sun, Dec 22, 2:56 PM
Unknown Object (File)
Dec 21 2024, 12:38 PM
Unknown Object (File)
Dec 15 2024, 12:43 AM
Subscribers
None

Details

Summary

Fixes T12921. Currently, we call getTitleForHTMLMail(), but that calls getTitleForMail() which forces us into text rendering mode.

Instead, have getTitleForHTML/TextMail() force the rendering mode, then call getTitleForMail() with the desired rendering mode.

This causes stories like "epriestely added dependent tasks: x, y." to appear as links in email instead of plain text.

Test Plan

Used bin/mail show-outbound --id ... --dump-html > out.html to verify HTML mail.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

  • Slightly simpler implementation.
This revision is now accepted and ready to land.Jan 16 2019, 2:10 AM
This revision was automatically updated to reflect the committed changes.