Differential D15773 Diff 38003 src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/feed/PhabricatorApplicationTransactionFeedStory.php
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | foreach ($xaction_phids as $xaction_phid) { | ||||
$secondary_xaction->setHandles($this->getHandles()); | $secondary_xaction->setHandles($this->getHandles()); | ||||
$body = $secondary_xaction->getBodyForFeed($this); | $body = $secondary_xaction->getBodyForFeed($this); | ||||
if (nonempty($body)) { | if (nonempty($body)) { | ||||
$view->appendChild($body); | $view->appendChild($body); | ||||
} | } | ||||
} | } | ||||
$view->setImage( | $author_phid = $xaction->getAuthorPHID(); | ||||
$this->getHandle($xaction->getAuthorPHID())->getImageURI()); | $author_handle = $this->getHandle($author_phid); | ||||
$author_image = $author_handle->getImageURI(); | |||||
if ($author_image) { | |||||
$view->setImage($author_image); | |||||
} else { | |||||
$view->setAuthorIcon($author_handle->getIcon()); | |||||
} | |||||
return $view; | return $view; | ||||
} | } | ||||
public function renderText() { | public function renderText() { | ||||
$xaction = $this->getPrimaryTransaction(); | $xaction = $this->getPrimaryTransaction(); | ||||
$old_target = $xaction->getRenderingTarget(); | $old_target = $xaction->getRenderingTarget(); | ||||
$new_target = PhabricatorApplicationTransaction::TARGET_TEXT; | $new_target = PhabricatorApplicationTransaction::TARGET_TEXT; | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |