Differential D19179 Diff 45940 src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
Show First 20 Lines • Show All 106 Lines • ▼ Show 20 Lines | if ($old_closed && !$new_closed) { | ||||
$this->renderValue($new_name)); | $this->renderValue($new_name)); | ||||
} | } | ||||
} | } | ||||
public function getIcon() { | public function getIcon() { | ||||
return 'fa-shield'; | return 'fa-shield'; | ||||
} | } | ||||
public function shouldHideForFeed() { | |||||
// Hide "alice created X, a task blocking Y." from feed because it | |||||
// will almost always appear adjacent to "alice created Y". | |||||
$is_new = $this->getMetadataValue('blocker.new'); | |||||
if ($is_new) { | |||||
return true; | |||||
} | |||||
return parent::shouldHideForFeed(); | |||||
} | |||||
} | } |