From 8f0d9c329566fcbab6c2c911bfddb15fdfee53cc Mon Sep 17 00:00:00 2001 From: Aviv Eyal Date: Thu, 28 Jan 2016 18:48:28 +0000 Subject: [PATCH] Remove email prefixes from doorkeeper titles Summary: Fixes T10176. The prefix is not useful in the JIRA context, and doubtfully useful in Asana. Test Plan: Load, make comment on revision, see link in JIRA is pretty. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin Maniphest Tasks: T10176 Differential Revision: https://secure.phabricator.com/D15119 --- .../DifferentialDoorkeeperRevisionFeedStoryPublisher.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/applications/differential/doorkeeper/DifferentialDoorkeeperRevisionFeedStoryPublisher.php b/src/applications/differential/doorkeeper/DifferentialDoorkeeperRevisionFeedStoryPublisher.php index ae662ab245..23ad165ca9 100644 --- a/src/applications/differential/doorkeeper/DifferentialDoorkeeperRevisionFeedStoryPublisher.php +++ b/src/applications/differential/doorkeeper/DifferentialDoorkeeperRevisionFeedStoryPublisher.php @@ -57,16 +57,11 @@ final class DifferentialDoorkeeperRevisionFeedStoryPublisher } public function getObjectTitle($object) { - $prefix = $this->getTitlePrefix($object); - - $lines = new PhutilNumber($object->getLineCount()); - $lines = pht('[Request, %d lines]', $lines); - $id = $object->getID(); $title = $object->getTitle(); - return ltrim("{$prefix} {$lines} D{$id}: {$title}"); + return "D{$id}: {$title}"; } public function getObjectURI($object) {