-
Notifications
You must be signed in to change notification settings - Fork 55
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
fix: Make loading the viewer an init script #2486
Conversation
@@ -4,7 +4,7 @@ | |||
"optimize-autoloader": true, | |||
"classmap-authoritative": true, | |||
"platform": { | |||
"php": "8.0" | |||
"php": "8.1" |
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.
otherwise nextcloud/ocp
stays at some very old version due to other dependencies that could not be updated.
Meaning this is required to update a version that known addInitScript
...
/compile |
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
d3a822f
to
d71d305
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.
Works well.
@susnux Do you think it would make sense to also backport this for nextcloud/richdocuments#3815 ? I would imagine this also helps there. |
@juliushaertl yes this makes sense, but this does not work with Nextcloud 30 and before on public shares. As for those versions the legacy file actions need to be registered after the file list. |
/backport to stable30 |
/backport to stable29 |
/backport to stable28 |
Move all init logic into an init script so that the viewer action is always registered before the file list is loaded.