From 274f115d41b2b216b647629ee335af1b699c739b Mon Sep 17 00:00:00 2001 From: Chad Little Date: Wed, 2 Dec 2015 23:49:28 +0000 Subject: [PATCH] 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 --- src/applications/pholio/storage/PholioTransaction.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/applications/pholio/storage/PholioTransaction.php b/src/applications/pholio/storage/PholioTransaction.php index c4a0cf90f8..17b0730dcb 100644 --- a/src/applications/pholio/storage/PholioTransaction.php +++ b/src/applications/pholio/storage/PholioTransaction.php @@ -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() {