From a5e29f3ffa9aa7444da81d7ac705987bfd6062db Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 13 Jun 2016 10:10:58 -0700 Subject: [PATCH] Fix an ancient ad-hoc string truncation Summary: Fixes T11139. We missed this years ago when we moved to PhutilUTF8StringTruncator. Test Plan: {F1686072} Reviewers: chad Reviewed By: chad Maniphest Tasks: T11139 Differential Revision: https://secure.phabricator.com/D16105 --- src/applications/diffusion/data/DiffusionPathChange.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/applications/diffusion/data/DiffusionPathChange.php b/src/applications/diffusion/data/DiffusionPathChange.php index be21125e6c..62dfdd6ace 100644 --- a/src/applications/diffusion/data/DiffusionPathChange.php +++ b/src/applications/diffusion/data/DiffusionPathChange.php @@ -113,9 +113,7 @@ final class DiffusionPathChange extends Phobject { if (!$this->getCommitData()) { return null; } - $message = $this->getCommitData()->getCommitMessage(); - $first = idx(explode("\n", $message), 0); - return substr($first, 0, 80); + return $this->getCommitData()->getSummary(); } public static function convertToArcanistChanges(array $changes) {