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
F18816976: D19968.diff
Oct 21 2025, 11:02 AM
F18811755: D19968.id.diff
Oct 20 2025, 4:42 AM
F18808939: D19968.diff
Oct 19 2025, 9:52 AM
F18725204: D19968.diff
Sep 30 2025, 4:55 AM
F18627815: D19968.id.diff
Sep 16 2025, 4:51 AM
F18627740: D19968.id47664.diff
Sep 16 2025, 4:40 AM
F18621868: D19968.diff
Sep 15 2025, 9:42 AM
F18569140: D19968.id47707.diff
Sep 10 2025, 1:02 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
Branch
mfa12
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 21517
Build 29317: Run Core Tests
Build 29316: arc lint + arc unit

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.