-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to register public share template provider #35736
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Psalm found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
$template = $this->shareDisplayTemplateFactory->getTemplate($share); | ||
$response = $template->renderPage($share, $this->getToken(), $path); | ||
} catch (NotFoundException $e) { | ||
$this->emitAccessShareHook($share, 404, 'Share not found'); |
Check notice
Code scanning / Psalm
DeprecatedMethod
6e7eb80
to
e5a0fff
Compare
0798d5f
to
f6e3818
Compare
8df671e
to
097440d
Compare
/rebase |
c7d40b6
to
347c388
Compare
347c388
to
8c04e9a
Compare
8c04e9a
to
0bc6d87
Compare
64f0172
to
a7ccca4
Compare
$shareTmpl['dirToken'] = $token; | ||
$shareTmpl['sharingToken'] = $token; | ||
$shareTmpl['server2serversharing'] = $this->federatedShareProvider->isOutgoingServer2serverShareEnabled(); | ||
$shareTmpl['protected'] = $share->getPassword() !== null ? 'true' : 'false'; |
Check notice
Code scanning / Psalm
RedundantConditionGivenDocblockType
|
||
$folder = new Template('files', 'list', ''); | ||
|
||
$folder->assign('dir', $shareNode->getRelativePath($folderNode->getPath())); |
Check notice
Code scanning / Psalm
PossiblyNullArgument
dd9e949
to
68c65f3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good apart from psalm reported issues I highlighted.
68c65f3
to
e45f732
Compare
The autoloaders are not up to date |
Signed-off-by: Carl Schwan <[email protected]> Signed-off-by: Louis Chemineau <[email protected]>
5606de5
to
4ab3c16
Compare
You shall not merge with red CI… but, hey, perhaps I get more funny Microsoft Github badges. |
Actually the red CI is caused by this:
|
Regression from #35736 INF is a the float INF, casting it to integer will make it 0 Signed-off-by: Joas Schilling <[email protected]>
Regression from #35736 INF is a the float INF, casting it to integer will make it 0 Signed-off-by: Joas Schilling <[email protected]>
Regression from nextcloud#35736 INF is a the float INF, casting it to integer will make it 0 Signed-off-by: Joas Schilling <[email protected]>
hello @CarlSchwan @artonge |
Forgot about it, here it is: nextcloud/documentation#9647 |
thank you for your lightning fast reply! |
Signed-off-by: Carl Schwan [email protected]