Changeset View
Changeset View
Standalone View
Standalone View
src/applications/pholio/storage/PholioTransaction.php
| Show First 20 Lines • Show All 291 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| break; | break; | ||||
| case PholioTransactionType::TYPE_INLINE: | case PholioTransactionType::TYPE_INLINE: | ||||
| $text = $this->getComment()->getContent(); | $text = $this->getComment()->getContent(); | ||||
| break; | break; | ||||
| } | } | ||||
| if ($text) { | if ($text) { | ||||
| return phutil_escape_html_newlines( | return phutil_escape_html_newlines( | ||||
| phutil_utf8_shorten($text, 128)); | id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(128) | |||||
| ->truncateString($text)); | |||||
| } | } | ||||
| return parent::getBodyForFeed($story); | return parent::getBodyForFeed($story); | ||||
| } | } | ||||
| public function hasChangeDetails() { | public function hasChangeDetails() { | ||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case PholioTransactionType::TYPE_DESCRIPTION: | case PholioTransactionType::TYPE_DESCRIPTION: | ||||
| ▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines | |||||