Page MenuHomePhabricator

D10231.diff
No OneTemporary

D10231.diff

diff --git a/src/applications/ponder/phid/PonderAnswerPHIDType.php b/src/applications/ponder/phid/PonderAnswerPHIDType.php
--- a/src/applications/ponder/phid/PonderAnswerPHIDType.php
+++ b/src/applications/ponder/phid/PonderAnswerPHIDType.php
@@ -29,8 +29,10 @@
$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
--- a/src/applications/ponder/storage/PonderAnswerTransaction.php
+++ b/src/applications/ponder/storage/PonderAnswerTransaction.php
@@ -54,16 +54,10 @@
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);

File Metadata

Mime Type
text/plain
Expires
Wed, May 15, 10:18 PM (2 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6290950
Default Alt Text
D10231.diff (1 KB)

Event Timeline