Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/storage/PonderAnswerTransaction.php
| Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | final class PonderAnswerTransaction | ||||
| public function getBodyForFeed(PhabricatorFeedStory $story) { | public function getBodyForFeed(PhabricatorFeedStory $story) { | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| $body = null; | $body = null; | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case self::TYPE_CONTENT: | case self::TYPE_CONTENT: | ||||
| return phutil_escape_html_newlines( | return phutil_escape_html_newlines( | ||||
| phutil_utf8_shorten($new, 128)); | id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(128) | |||||
| ->truncateString($new)); | |||||
| break; | break; | ||||
| } | } | ||||
| return parent::getBodyForFeed($story); | return parent::getBodyForFeed($story); | ||||
| } | } | ||||
| public function hasChangeDetails() { | public function hasChangeDetails() { | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| Show All 16 Lines | |||||