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
F15431964: D19968.id47707.diff
Mon, Mar 24, 3:33 PM
F15429038: D19968.id.diff
Mon, Mar 24, 12:06 AM
F15417476: D19968.diff
Thu, Mar 20, 5:15 PM
F15408275: D19968.id47663.diff
Tue, Mar 18, 10:07 PM
F15403517: D19968.id47664.diff
Tue, Mar 18, 3:41 AM
F15381268: D19968.diff
Fri, Mar 14, 6:45 AM
Unknown Object (File)
Tue, Feb 25, 6:37 AM
Unknown Object (File)
Feb 20 2025, 2:05 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.