@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.)
hq.recaptime.dev/wiki/Phorge
phorge
phabricator
1<?php
2
3final class PhabricatorCoreCreateTransaction
4 extends PhabricatorCoreTransactionType {
5
6 const TRANSACTIONTYPE = 'core:create';
7
8 public function generateOldValue($object) {
9 return null;
10 }
11
12 public function getTitle() {
13 $editor = $this->getObject()->getApplicationTransactionEditor();
14
15 $author = $this->renderAuthor();
16 $object = $this->renderObject();
17
18 return $editor->getCreateObjectTitle($author, $object);
19 }
20
21 public function getTitleForFeed() {
22 $editor = $this->getObject()->getApplicationTransactionEditor();
23
24 $author = $this->renderAuthor();
25 $object = $this->renderObject();
26
27 return $editor->getCreateObjectTitleForFeed($author, $object);
28 }
29
30 public function getActionStrength() {
31 // The creation feed is supposed to be "more important" than other things.
32 // So a Task is first created and then closed, and not vice-versa.
33 // The default null was causing weirdnesses in Maniphest and Phriction.
34 // See ManiphestTaskTitleTransaction#getActionStrength()
35 // See PhrictionDocumentTitleTransaction#getActionStrength()
36 return 140;
37 }
38
39}