Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15412848
D18058.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18058.diff
View Options
diff --git a/src/applications/maniphest/storage/ManiphestTransaction.php b/src/applications/maniphest/storage/ManiphestTransaction.php
--- a/src/applications/maniphest/storage/ManiphestTransaction.php
+++ b/src/applications/maniphest/storage/ManiphestTransaction.php
@@ -40,6 +40,22 @@
return parent::shouldGenerateOldValue();
}
+ public function shouldHideForFeed() {
+ // NOTE: Modular transactions don't currently support this, and it has
+ // very few callsites, and it's publish-time rather than display-time.
+ // This should probably become a supported, display-time behavior. For
+ // discussion, see T12787.
+
+ // 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();
+ }
+
public function getRequiredHandlePHIDs() {
$phids = parent::getRequiredHandlePHIDs();
diff --git a/src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php b/src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
--- a/src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
+++ b/src/applications/maniphest/xaction/ManiphestTaskUnblockTransaction.php
@@ -9,15 +9,6 @@
return null;
}
- 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;
- }
- }
-
public function getActionName() {
$old = $this->getOldValue();
$new = $this->getNewValue();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 20, 3:17 PM (2 d, 14 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712704
Default Alt Text
D18058.diff (1 KB)
Attached To
Mode
D18058: Hide "X created Y, a subtask of P." feed stories again
Attached
Detach File
Event Timeline
Log In to Comment