Skip to content

Commit

Permalink
Update UserGroupPropertyAnnotator.php
Browse files Browse the repository at this point in the history
  • Loading branch information
paladox authored Dec 31, 2024
1 parent 894f79f commit aff7bf9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PropertyAnnotators/UserGroupPropertyAnnotator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ public function addAnnotation( DIProperty $property, SemanticData $semanticData
return;
}

foreach ( $user->getGroups() as $group ) {
$groups = MediaWikiServices::getInstance()->getUserGroupManager()->getUserGroups( $user );
foreach ( $groups as $group ) {
$semanticData->addPropertyObjectValue( $property, new DIBlob( $group ) );
}
}
Expand Down

0 comments on commit aff7bf9

Please sign in to comment.