Skip to content

Commit

Permalink
Merge pull request #3112 from nextcloud/bugfix/noid/pdf-disable
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusknorr authored Aug 16, 2023
2 parents 6ff1851 + d2374f7 commit 2d90497
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,11 @@ public function registerProvider() {
return $container->get(OpenDocument::class);
});

$previewManager->registerProvider('/application\/pdf/', function () use ($container) {
return $container->get(Pdf::class);
});
if (!$previewManager->isMimeSupported('application/pdf')) {
$previewManager->registerProvider('/application\/pdf/', function () use ($container) {
return $container->get(Pdf::class);
});
}
}

public function checkAndEnableCODEServer() {
Expand Down

0 comments on commit 2d90497

Please sign in to comment.