summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--extensions/PhabBugz/lib/Feed.pm10
1 files changed, 7 insertions, 3 deletions
diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm
index 8f02d8c3f..96c0830a2 100644
--- a/extensions/PhabBugz/lib/Feed.pm
+++ b/extensions/PhabBugz/lib/Feed.pm
@@ -236,9 +236,13 @@ sub group_query {
my $sync_groups = Bugzilla::Group->match( { isactive => 1, isbuggroup => 1 } );
# Load phab-bot Phabricator user to add as a member of each project group later
- my $phab_ids = get_phab_bmo_ids( { ids => [ Bugzilla->user->id ] } );
- my $phab_user = Bugzilla::User->new( { id => $phab_ids->[0]->{id}, cache => 1 } );
- $phab_user->{phab_phid} = $phab_ids->[0]->{phid};
+ my $phab_bmo_user = Bugzilla::User->new( { name => PHAB_AUTOMATION_USER, cache => 1 } );
+ my $phab_user =
+ Bugzilla::Extension::PhabBugz::User->new_from_query(
+ {
+ ids => [ $phab_bmo_user->id ]
+ }
+ );
# secure-revision project that will be used for bmo group projects
my $secure_revision =