Skip to content

Commit

Permalink
Merge pull request #189 from ConductionNL/hotfix/reshares
Browse files Browse the repository at this point in the history
Hotfix: also look for reshares
  • Loading branch information
rjzondervan authored Feb 13, 2025
2 parents 5d13980 + 6dcb810 commit be59e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Service/FileService.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ public function findShares(Node $file, int $shareType = 3): array
$currentUser = $this->userSession->getUser();
$userId = $currentUser ? $currentUser->getUID() : 'Guest';

return $this->shareManager->getSharesBy(userId: $userId, shareType: $shareType, path: $file);
return $this->shareManager->getSharesBy(userId: $userId, shareType: $shareType, path: $file, reshares: true);
}

/**
Expand Down Expand Up @@ -497,7 +497,7 @@ public function findShare(string $path, ?int $shareType = 3): ?IShare
}

if ($file instanceof File) {
$shares = $this->shareManager->getSharesBy(userId: $userId, shareType: $shareType, path: $file);
$shares = $this->shareManager->getSharesBy(userId: $userId, shareType: $shareType, path: $file, reshares: true);
if (count($shares) > 0) {
return $shares[0];
}
Expand Down

0 comments on commit be59e07

Please sign in to comment.