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:
parent
fe5cd4ca2c
commit
8f0d9c3295
1 changed files with 1 additions and 6 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue