Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13969185
D10231.id24620.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D10231.id24620.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 18 2024, 1:00 AM (4 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714315
Default Alt Text
D10231.id24620.diff (1 KB)
Attached To
Mode
D10231: Fix broken handle rendering in Ponder
Attached
Detach File
Event Timeline
Log In to Comment