1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00

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
This commit is contained in:
Aviv Eyal 2016-01-28 18:48:28 +00:00 committed by avivey
parent fe5cd4ca2c
commit 8f0d9c3295

View file

@ -57,16 +57,11 @@ final class DifferentialDoorkeeperRevisionFeedStoryPublisher
} }
public function getObjectTitle($object) { public function getObjectTitle($object) {
$prefix = $this->getTitlePrefix($object);
$lines = new PhutilNumber($object->getLineCount());
$lines = pht('[Request, %d lines]', $lines);
$id = $object->getID(); $id = $object->getID();
$title = $object->getTitle(); $title = $object->getTitle();
return ltrim("{$prefix} {$lines} D{$id}: {$title}"); return "D{$id}: {$title}";
} }
public function getObjectURI($object) { public function getObjectURI($object) {