-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Don't fetch preview images if enable_previews is set to false
#26705
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
Conversation
|
@PhilippSchaffrath, thanks for your PR! By analyzing the history of the files in this pull request, we identified @rullzer, @icewind1991 and @PVince81 to be potential reviewers. |
core/js/config.php
Outdated
| 'federatedCloudShareDoc' => \OC::$server->getURLGenerator()->linkToDocs('user-sharing-federated'), | ||
| 'allowGroupSharing' => \OC::$server->getShareManager()->allowGroupSharing() | ||
| 'allowGroupSharing' => \OC::$server->getShareManager()->allowGroupSharing(), | ||
| 'previewsEnabled' => \OC::$server->getConfig()->getSystemValue('enable_previews', true) === true, |
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.
tabs
PVince81
left a comment
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.
Tested, works 👍
Please fix the tab then this is good to go
|
👍 |
|
I suggest we also backport this to 9.1, 9.0, seems this never worked correctly. |
|
@PhilippSchaffrath please submit backport PRs for 9.1 and 9.0, thanks |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Even if
enable_previewsinconfig/config.phphas been set tofalse, the file-list and detail-view both still try to get a preview image. ThelazyLoadPreviewmethod now checks for this configuration and only renders the default mime-icons now if previews have been disabled through the configuration.Motivation and Context
See description.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
@felixheidecke