Skip to content

Commit a8cc660

Browse files
authored
Merge pull request #4868 from nextcloud/backport/4866/stable30
[stable30] fix: undefined share for preview
2 parents 7eae1ad + cf33f44 commit a8cc660

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Listener/BeforeFetchPreviewListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function handle(Event $event): void {
4343
}
4444
$shareToken = $this->request->getParam('token');
4545

46+
$share = null;
4647
try {
4748
$share = $shareToken ?
4849
// Get different share for public previews as the share from the node is only set for mounted shares

0 commit comments

Comments
 (0)