Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: Set a token to shares retreived from the DB
When accessing a circle share from the public share view, the `addOpenGraphHeaders` method was erroring in `DefaultPublicShareTemplateProvider`.
This is due to the fact that the `$share` object for circles share does not contain a token, so the computation of the `$shareUrl` was failing.

This commit ensures that the share has a token.

Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge authored and backportbot[bot] committed May 13, 2025
commit 9af9ee27f4bb0e418909f030e5a1f9fde06d9fb5
1 change: 1 addition & 0 deletions lib/Model/ShareWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ public function getShare(
$share->setTarget($this->getFileTarget());
$share->setProviderId($this->getProviderId());
$share->setStatus($this->getStatus());
$share->setToken($this->getToken());
$share->setHideDownload($this->getHideDownload());
$share->setAttributes($this->getAttributes());
$share->setNote($this->getShareNote());
Expand Down
Loading