1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Improve timeline rendering for old macros

Summary: This always bugs me when I'm going through `secure` looking for the spiciest macros.

Test Plan: Forced a date to be null, saw reasonable text.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D20453
This commit is contained in:
Austin McKinley 2019-04-18 17:14:38 -07:00
parent d8dba26a08
commit de74332639

View file

@ -136,7 +136,12 @@ final class PhabricatorMacroViewController
$image_uri = $handles[$author_phid]->getImageURI();
$image_href = $handles[$author_phid]->getURI();
if (!$date) {
$content = pht(
'Masterfully imagined by %s in ages long past.', $author);
} else {
$content = pht('Masterfully imagined by %s on %s.', $author, $date);
}
return id(new PHUIHeadThingView())
->setImage($image_uri)