diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php index 93b2bc9d19..39284871e4 100644 --- a/src/__phutil_library_map__.php +++ b/src/__phutil_library_map__.php @@ -4864,6 +4864,7 @@ phutil_register_library_map(array( array( 0 => 'PhabricatorRepositoryDAO', 1 => 'PhabricatorPolicyInterface', + 2 => 'PhabricatorDestructableInterface', ), 'PhabricatorRepositoryArcanistProjectDeleteController' => 'PhabricatorRepositoryController', 'PhabricatorRepositoryArcanistProjectEditController' => 'PhabricatorRepositoryController', @@ -5329,6 +5330,7 @@ phutil_register_library_map(array( 5 => 'PhabricatorFlaggableInterface', 6 => 'PhabricatorApplicationTransactionInterface', 7 => 'PhabricatorProjectInterface', + 8 => 'PhabricatorDestructableInterface', ), 'PholioMockCommentController' => 'PholioController', 'PholioMockEditController' => 'PholioController', diff --git a/src/applications/herald/adapter/HeraldPholioMockAdapter.php b/src/applications/herald/adapter/HeraldPholioMockAdapter.php index a49eb98387..015e162e5d 100644 --- a/src/applications/herald/adapter/HeraldPholioMockAdapter.php +++ b/src/applications/herald/adapter/HeraldPholioMockAdapter.php @@ -1,8 +1,5 @@ getMock()->getAuthorPHID(); case self::FIELD_CC: return PhabricatorSubscribersQuery::loadSubscribersForPHID( - $this->getMock()->getPHID()); + $this->getMock()->getPHID()); + case self::FIELD_PROJECTS: + return PhabricatorEdgeQuery::loadDestinationPHIDs( + $this->getMock()->getPHID(), + PhabricatorEdgeConfig::TYPE_OBJECT_HAS_PROJECT); } return parent::getHeraldField($field);