Skip to content

Commit

Permalink
fix(share): link share of federated share
Browse files Browse the repository at this point in the history
Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud authored and juliusknorr committed Nov 5, 2024
1 parent 031aaf5 commit bd19220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/DocumentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public function token(int $fileId, ?string $shareToken = null, ?string $path = n
$share = $shareToken ? $this->shareManager->getShareByToken($shareToken) : null;
$file = $shareToken ? $this->getFileForShare($share, $fileId, $path) : $this->getFileForUser($fileId, $path);

$federatedUrl = $this->federationService->getRemoteRedirectURL($file);
$federatedUrl = $this->federationService->getRemoteRedirectURL($file, null, $share);
if ($federatedUrl) {
return new DataResponse([
'federatedUrl' => $federatedUrl,
Expand Down

0 comments on commit bd19220

Please sign in to comment.