Skip to content

Commit

Permalink
Merge pull request pkp#10 from Vitaliy-1/i10506_usergroup_eloquent
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10506 User Group refactoring to Eloquent Model
  • Loading branch information
Vitaliy-1 authored Dec 16, 2024
2 parents 342fee8 + ebed779 commit 1361507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebFeedGatewayPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
use PKP\category\Category;
use PKP\core\Registry;
use PKP\plugins\GatewayPlugin;
use PKP\userGroup\UserGroup;

class WebFeedGatewayPlugin extends GatewayPlugin
{
Expand Down Expand Up @@ -93,7 +94,7 @@ public function fetch($args, $request): bool
$submissions = $submissions->getMany();
$latestDate ??= $submissions->first()?->getData('lastModified');
$submissions = $submissions->map(fn (Submission $submission) => ['submission' => $submission, 'identifiers' => $this->getIdentifiers($submission)]);
$userGroups = Repo::userGroup()->getCollector()->filterByContextIds([$context->getId()])->getMany();
$userGroups = UserGroup::withContextIds([$context->getId()])->get();

$applicationIdentifier = strtolower(preg_replace('/[^a-z]/i', '', Application::getName()));
TemplateManager::getManager($request)
Expand Down

0 comments on commit 1361507

Please sign in to comment.