Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14101709
D20797.id49588.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D20797.id49588.diff
View Options
diff --git a/src/applications/herald/field/HeraldField.php b/src/applications/herald/field/HeraldField.php
--- a/src/applications/herald/field/HeraldField.php
+++ b/src/applications/herald/field/HeraldField.php
@@ -177,25 +177,26 @@
}
public function getPHIDsAffectedByCondition(HeraldCondition $condition) {
- $phids = array();
+ try {
+ $standard_type = $this->getHeraldFieldStandardType();
+ } catch (PhutilMethodNotImplementedException $ex) {
+ $standard_type = null;
+ }
- $standard_type = $this->getHeraldFieldStandardType();
switch ($standard_type) {
case self::STANDARD_PHID:
case self::STANDARD_PHID_NULLABLE:
- $phid = $condition->getValue();
- if ($phid) {
- $phids[] = $phid;
- }
- break;
case self::STANDARD_PHID_LIST:
- foreach ($condition->getValue() as $phid) {
- $phids[] = $phid;
+ $phids = $condition->getValue();
+
+ if (!is_array($phids)) {
+ $phids = array();
}
- break;
+
+ return $phids;
}
- return $phids;
+ return array();
}
final public function setAdapter(HeraldAdapter $adapter) {
diff --git a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
--- a/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
+++ b/src/applications/transactions/storage/PhabricatorApplicationTransaction.php
@@ -775,6 +775,13 @@
case PhabricatorTransactions::TYPE_TOKEN:
case PhabricatorTransactions::TYPE_MFA:
return true;
+ case PhabricatorTransactions::TYPE_SUBSCRIBERS:
+ // See T8952. When an application (usually Herald) modifies
+ // subscribers, this tends to be very uninteresting.
+ if ($this->isApplicationAuthor()) {
+ return true;
+ }
+ break;
case PhabricatorTransactions::TYPE_EDGE:
$edge_type = $this->getMetadataValue('edge:type');
switch ($edge_type) {
@@ -1387,12 +1394,6 @@
return 25;
}
- if ($this->isApplicationAuthor()) {
- // When applications (most often: Herald) change subscriptions it
- // is very uninteresting.
- return 1;
- }
-
// In other cases, subscriptions are more interesting than comments
// (which are shown anyway) but less interesting than any other type of
// transaction.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 27, 4:40 PM (20 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6791373
Default Alt Text
D20797.id49588.diff (2 KB)
Attached To
Mode
D20797: When Herald changes object subscribers, always hide the feed story
Attached
Detach File
Event Timeline
Log In to Comment