Page MenuHomePhabricator

D10319.id24840.diff
No OneTemporary

D10319.id24840.diff

diff --git a/src/applications/ponder/storage/PonderQuestionTransaction.php b/src/applications/ponder/storage/PonderQuestionTransaction.php
--- a/src/applications/ponder/storage/PonderQuestionTransaction.php
+++ b/src/applications/ponder/storage/PonderQuestionTransaction.php
@@ -64,10 +64,19 @@
case self::TYPE_ANSWERS:
$answer_handle = $this->getHandle($this->getNewAnswerPHID());
$question_handle = $this->getHandle($object_phid);
+
+ $answer_ref = null;
+ if ($this->getRenderingTarget() == self::TARGET_HTML) {
+ $answer_ref = $answer_handle->renderLink(
+ $question_handle->getFullName());
+ } else {
+ $answer_ref = $question_handle->getLinkName();
+ }
+
return pht(
'%s answered %s',
$this->renderHandleLink($author_phid),
- $answer_handle->renderLink($question_handle->getFullName()));
+ $answer_ref);
case self::TYPE_STATUS:
switch ($new) {
case PonderQuestionStatus::STATUS_OPEN:

File Metadata

Mime Type
text/plain
Expires
Wed, Mar 5, 5:05 PM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7226083
Default Alt Text
D10319.id24840.diff (1 KB)

Event Timeline