Skip to content

Commit 2322f28

Browse files
CarlSchwanbackportbot[bot]
authored andcommitted
perf(users): Create lazy users in IUserManager::getSeenUsers
Particularly relevant in occ commands/background jobs like the trashbin expiration which only needs the user ids and not the full information. Signed-off-by: Carl Schwan <[email protected]>
1 parent b808ddd commit 2322f28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/private/User/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ public function getSeenUsers(int $offset = 0): \Iterator {
797797
foreach ($userIds as $userId) {
798798
foreach ($this->backends as $backend) {
799799
if ($backend->userExists($userId)) {
800-
$user = $this->getUserObject($userId, $backend, false);
800+
$user = new LazyUser($userId, $this, null, $backend);
801801
yield $user;
802802
break;
803803
}

0 commit comments

Comments
 (0)