Changeset View
Changeset View
Standalone View
Standalone View
src/applications/phame/storage/PhamePostTransaction.php
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
} | } | ||||
break; | break; | ||||
case self::TYPE_BODY: | case self::TYPE_BODY: | ||||
$text = $this->getNewValue(); | $text = $this->getNewValue(); | ||||
break; | break; | ||||
} | } | ||||
if (strlen($text)) { | if (strlen($text)) { | ||||
return phutil_escape_html_newlines( | return PhabricatorMarkupEngine::summarize($text); | ||||
id(new PhutilUTF8StringTruncator()) | |||||
->setMaximumGlyphs(128) | |||||
->truncateString($text)); | |||||
} | } | ||||
return parent::getBodyForFeed($story); | return parent::getBodyForFeed($story); | ||||
} | } | ||||
public function getColor() { | public function getColor() { | ||||
$old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
Show All 36 Lines |