mirror of
https://we.phorge.it/source/phorge.git
synced 2025-04-12 20:38:41 +02:00
Use PhabricatorObjectListQuery in Herald worker
Summary: Ref T2222. Straightforward, just breaks a needless dependency. Test Plan: Pushed and parsed a commit with "Auditors" in it. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2222 Differential Revision: https://secure.phabricator.com/D8473
This commit is contained in:
parent
7cd4e70ef2
commit
3f67430f46
1 changed files with 10 additions and 4 deletions
|
@ -270,10 +270,16 @@ final class PhabricatorRepositoryCommitHeraldWorker
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$phids = DifferentialFieldSpecification::parseCommitMessageObjectList(
|
$phids = id(new PhabricatorObjectListQuery())
|
||||||
$matches[1],
|
->setViewer(PhabricatorUser::getOmnipotentUser())
|
||||||
$include_mailables = false,
|
->setAllowPartialResults(true)
|
||||||
$allow_partial = true);
|
->setAllowedTypes(
|
||||||
|
array(
|
||||||
|
PhabricatorPeoplePHIDTypeUser::TYPECONST,
|
||||||
|
PhabricatorProjectPHIDTypeProject::TYPECONST,
|
||||||
|
))
|
||||||
|
->setObjectList($matches[1])
|
||||||
|
->execute();
|
||||||
|
|
||||||
if (!$phids) {
|
if (!$phids) {
|
||||||
return array();
|
return array();
|
||||||
|
|
Loading…
Add table
Reference in a new issue