Differential D12130 Diff 29187 src/applications/transactions/storage/PhabricatorApplicationTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/transactions/storage/PhabricatorApplicationTransaction.php
| Show First 20 Lines • Show All 544 Lines • ▼ Show 20 Lines | case PhabricatorTransactions::TYPE_EDGE: | ||||
| case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | ||||
| case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | ||||
| return true; | return true; | ||||
| break; | break; | ||||
| default: | default: | ||||
| break; | break; | ||||
| } | } | ||||
| break; | break; | ||||
| case PhabricatorTransactions::TYPE_INLINESTATE: | |||||
| return true; | |||||
| } | } | ||||
| return $this->shouldHide(); | return $this->shouldHide(); | ||||
| } | } | ||||
| public function getTitleForMail() { | public function getTitleForMail() { | ||||
| return id(clone $this)->setRenderingTarget('text')->getTitle(); | return id(clone $this)->setRenderingTarget('text')->getTitle(); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| return $body; | return $body; | ||||
| } | } | ||||
| public function getActionStrength() { | public function getActionStrength() { | ||||
| if ($this->isInlineCommentTransaction()) { | |||||
| return 0.25; | |||||
| } | |||||
| switch ($this->getTransactionType()) { | switch ($this->getTransactionType()) { | ||||
| case PhabricatorTransactions::TYPE_COMMENT: | case PhabricatorTransactions::TYPE_COMMENT: | ||||
| return 0.5; | return 0.5; | ||||
| case PhabricatorTransactions::TYPE_SUBSCRIBERS: | case PhabricatorTransactions::TYPE_SUBSCRIBERS: | ||||
| $old = $this->getOldValue(); | $old = $this->getOldValue(); | ||||
| $new = $this->getNewValue(); | $new = $this->getNewValue(); | ||||
| $add = array_diff($old, $new); | $add = array_diff($old, $new); | ||||
| ▲ Show 20 Lines • Show All 287 Lines • Show Last 20 Lines | |||||