diff --git a/src/applications/ponder/phid/PonderAnswerPHIDType.php b/src/applications/ponder/phid/PonderAnswerPHIDType.php index 24564f6a6f..c8747007d3 100644 --- a/src/applications/ponder/phid/PonderAnswerPHIDType.php +++ b/src/applications/ponder/phid/PonderAnswerPHIDType.php @@ -29,8 +29,10 @@ final class PonderAnswerPHIDType extends PhabricatorPHIDType { $answer = $objects[$phid]; $id = $answer->getID(); + $question = $answer->getQuestion(); + $question_title = $question->getFullTitle(); - $handle->setName("Answer {$id}"); + $handle->setName("{$question_title} (Answer {$id})"); $handle->setURI($answer->getURI()); } } diff --git a/src/applications/ponder/storage/PonderAnswerTransaction.php b/src/applications/ponder/storage/PonderAnswerTransaction.php index 7b70dcadc1..ced8a08fe9 100644 --- a/src/applications/ponder/storage/PonderAnswerTransaction.php +++ b/src/applications/ponder/storage/PonderAnswerTransaction.php @@ -54,16 +54,10 @@ final class PonderAnswerTransaction switch ($this->getTransactionType()) { case self::TYPE_CONTENT: - $answer = $story->getObject($object_phid); - $question = $answer->getQuestion(); - $answer_handle = $this->getHandle($object_phid); - $link = $answer_handle->renderLink( - $question->getFullTitle()); - return pht( - '%s updated their answer to %s', + '%s updated %s.', $this->renderHandleLink($author_phid), - $link); + $this->renderHandleLink($object_phid)); } return parent::getTitleForFeed($story);