mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-20 20:40:56 +01:00
Fixes T2523 - Comments are being displayed in feed.
Summary: currently, only comments per se are being displayed. cut after 128 characters (which is the default), means in theory up to 128 newlines ^^ when you for example claim a task with a comment, close it with a comment, or do anything else, it won't be displayed Test Plan: {F33890} Reviewers: epriestley, btrahan, hwinkel Reviewed By: epriestley CC: aran, Korvin Maniphest Tasks: T2523 Differential Revision: https://secure.phabricator.com/D5119
This commit is contained in:
parent
34db006c4b
commit
1b8ac077f5
1 changed files with 15 additions and 1 deletions
|
@ -26,6 +26,7 @@ final class PhabricatorFeedStoryManiphest
|
|||
$action = $data->getValue('action');
|
||||
switch ($action) {
|
||||
case ManiphestAction::ACTION_CREATE:
|
||||
case ManiphestAction::ACTION_COMMENT:
|
||||
$full_size = true;
|
||||
break;
|
||||
default:
|
||||
|
@ -35,7 +36,20 @@ final class PhabricatorFeedStoryManiphest
|
|||
|
||||
if ($full_size) {
|
||||
$view->setImage($this->getHandle($data->getAuthorPHID())->getImageURI());
|
||||
$content = $this->renderSummary($data->getValue('description'));
|
||||
|
||||
switch ($action) {
|
||||
case ManiphestAction::ACTION_COMMENT:
|
||||
// I'm just fetching the comments here
|
||||
// Don't repeat this at home!
|
||||
$comments = $data->getValue('comments');
|
||||
$content = $this->renderSummary($comments);
|
||||
break;
|
||||
default:
|
||||
// I think this is just for create
|
||||
$content = $this->renderSummary($data->getValue('description'));
|
||||
break;
|
||||
}
|
||||
|
||||
$view->appendChild($content);
|
||||
} else {
|
||||
$view->setOneLineStory(true);
|
||||
|
|
Loading…
Reference in a new issue