mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
Fixed losing full size feed for maniphest task creation
Summary: After D2571, feed for maniphest task creation was being generated non-full-size. Fixed this by properly getting the maniphest action from story data. Test Plan: Feed seems to work fine and the feed for task creation is full-sized. Reviewers: epriestley, btrahan Reviewed By: epriestley CC: allenjohnashton, ddfisher, aran, Korvin Differential Revision: https://secure.phabricator.com/D2691
This commit is contained in:
parent
d90a6cfbd1
commit
be0e16ff7d
1 changed files with 17 additions and 20 deletions
|
@ -40,13 +40,11 @@ final class PhabricatorFeedStoryManiphest
|
||||||
|
|
||||||
$view = new PhabricatorFeedStoryView();
|
$view = new PhabricatorFeedStoryView();
|
||||||
|
|
||||||
|
$line = $this->getLineForData($data);
|
||||||
|
$view->setTitle($line);
|
||||||
$view->setEpoch($data->getEpoch());
|
$view->setEpoch($data->getEpoch());
|
||||||
|
|
||||||
$action = $this->getLineForData($data);
|
$action = $data->getValue('action');
|
||||||
$view->setTitle($action);
|
|
||||||
$view->setEpoch($data->getEpoch());
|
|
||||||
|
|
||||||
|
|
||||||
switch ($action) {
|
switch ($action) {
|
||||||
case ManiphestAction::ACTION_CREATE:
|
case ManiphestAction::ACTION_CREATE:
|
||||||
$full_size = true;
|
$full_size = true;
|
||||||
|
@ -57,7 +55,7 @@ final class PhabricatorFeedStoryManiphest
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($full_size) {
|
if ($full_size) {
|
||||||
$view->setImage($this->getHandle($this->getAuthorPHID())->getImageURI());
|
$view->setImage($this->getHandle($data->getAuthorPHID())->getImageURI());
|
||||||
$content = $this->renderSummary($data->getValue('description'));
|
$content = $this->renderSummary($data->getValue('description'));
|
||||||
$view->appendChild($content);
|
$view->appendChild($content);
|
||||||
} else {
|
} else {
|
||||||
|
@ -67,7 +65,6 @@ final class PhabricatorFeedStoryManiphest
|
||||||
return $view;
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function renderNotificationView() {
|
public function renderNotificationView() {
|
||||||
$data = $this->getStoryData();
|
$data = $this->getStoryData();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue