diff --git a/src/view/phui/PHUIFeedStoryView.php b/src/view/phui/PHUIFeedStoryView.php index 35c782ee72..0c455ad9e8 100644 --- a/src/view/phui/PHUIFeedStoryView.php +++ b/src/view/phui/PHUIFeedStoryView.php @@ -189,7 +189,13 @@ final class PHUIFeedStoryView extends AphrontView { } if ($this->epoch) { - $foot = phabricator_datetime($this->epoch, $this->user); + // TODO: This is really bad; when rendering through Conduit and via + // renderText() we don't have a user. + if ($this->user) { + $foot = phabricator_datetime($this->epoch, $this->user); + } else { + $foot = null; + } } else { $foot = pht('No time specified.'); }