1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +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:
Chad Little 2015-12-02 23:49:28 +00:00 committed by chad
parent 8d62ade70a
commit 274f115d41

View file

@ -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() {