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
F15508079: D19968.id47707.diff
Wed, Apr 16, 1:23 AM
F15508076: D19968.id.diff
Wed, Apr 16, 1:22 AM
F15508073: D19968.diff
Wed, Apr 16, 1:22 AM
F15507235: D19968.id47664.diff
Tue, Apr 15, 5:44 PM
F15507181: D19968.id47707.diff
Tue, Apr 15, 5:04 PM
F15506737: D19968.id47663.diff
Tue, Apr 15, 1:46 PM
F15504014: D19968.id47664.diff
Mon, Apr 14, 3:01 PM
F15503022: D19968.id.diff
Mon, Apr 14, 6:09 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.