mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Update Pholio to return Remarkup in Feed
Summary: Uses getRemarkupBodyForFeed instead Test Plan: New Mock, Edit Mock, Inline comments. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T9825 Differential Revision: https://secure.phabricator.com/D14650
This commit is contained in:
parent
8d62ade70a
commit
274f115d41
1 changed files with 2 additions and 9 deletions
|
@ -301,7 +301,7 @@ final class PholioTransaction extends PhabricatorApplicationTransaction {
|
|||
return parent::getTitleForFeed();
|
||||
}
|
||||
|
||||
public function getBodyForFeed(PhabricatorFeedStory $story) {
|
||||
public function getRemarkupBodyForFeed(PhabricatorFeedStory $story) {
|
||||
$text = null;
|
||||
switch ($this->getTransactionType()) {
|
||||
case self::TYPE_NAME:
|
||||
|
@ -315,14 +315,7 @@ final class PholioTransaction extends PhabricatorApplicationTransaction {
|
|||
break;
|
||||
}
|
||||
|
||||
if ($text) {
|
||||
return phutil_escape_html_newlines(
|
||||
id(new PhutilUTF8StringTruncator())
|
||||
->setMaximumGlyphs(128)
|
||||
->truncateString($text));
|
||||
}
|
||||
|
||||
return parent::getBodyForFeed($story);
|
||||
return $text;
|
||||
}
|
||||
|
||||
public function hasChangeDetails() {
|
||||
|
|
Loading…
Reference in a new issue