mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30: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();
|
return parent::getTitleForFeed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getBodyForFeed(PhabricatorFeedStory $story) {
|
public function getRemarkupBodyForFeed(PhabricatorFeedStory $story) {
|
||||||
$text = null;
|
$text = null;
|
||||||
switch ($this->getTransactionType()) {
|
switch ($this->getTransactionType()) {
|
||||||
case self::TYPE_NAME:
|
case self::TYPE_NAME:
|
||||||
|
@ -315,14 +315,7 @@ final class PholioTransaction extends PhabricatorApplicationTransaction {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($text) {
|
return $text;
|
||||||
return phutil_escape_html_newlines(
|
|
||||||
id(new PhutilUTF8StringTruncator())
|
|
||||||
->setMaximumGlyphs(128)
|
|
||||||
->truncateString($text));
|
|
||||||
}
|
|
||||||
|
|
||||||
return parent::getBodyForFeed($story);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hasChangeDetails() {
|
public function hasChangeDetails() {
|
||||||
|
|
Loading…
Reference in a new issue