Differential D15942 Diff 38384 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 607 Lines • ▼ Show 20 Lines | switch ($this->getTransactionType()) { | ||||
} | } | ||||
return true; | return true; | ||||
case PhabricatorTransactions::TYPE_EDGE: | case PhabricatorTransactions::TYPE_EDGE: | ||||
$edge_type = $this->getMetadataValue('edge:type'); | $edge_type = $this->getMetadataValue('edge:type'); | ||||
switch ($edge_type) { | switch ($edge_type) { | ||||
case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionsObjectEdgeType::EDGECONST: | ||||
case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | case PhabricatorObjectMentionedByObjectEdgeType::EDGECONST: | ||||
return true; | return true; | ||||
break; | case PhabricatorProjectObjectHasProjectEdgeType::EDGECONST: | ||||
// When an object is first created, we hide any corresponding | |||||
// project transactions in the web UI because you can just look at | |||||
// the UI element elsewhere on screen to see which projects it | |||||
// is tagged with. However, in mail there's no other way to get | |||||
// this information, and it has some amount of value to users, so | |||||
// we keep the transaction. See T10493. | |||||
return false; | |||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
if ($this->isInlineCommentTransaction()) { | if ($this->isInlineCommentTransaction()) { | ||||
$inlines = array(); | $inlines = array(); | ||||
▲ Show 20 Lines • Show All 931 Lines • Show Last 20 Lines |