aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/PreviewManager.php
diff options
context:
space:
mode:
authorernolf <raphael.gradenwitz@googlemail.com>2024-07-13 12:59:22 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2024-07-25 17:01:01 +0200
commita8bdd4f99b9518b6d0df1f86a369b843ce6f1293 (patch)
tree7709da37f4cafe3dfbaaf49250d1a0e2721dfa4b /lib/private/PreviewManager.php
parentd5bb37ab0d872fb4bdb1ec61809c575a46341a25 (diff)
downloadnextcloud-server-a8bdd4f99b9518b6d0df1f86a369b843ce6f1293.tar.gz
nextcloud-server-a8bdd4f99b9518b6d0df1f86a369b843ce6f1293.zip
feat(preview): move previews for imaginary pdf to own class ImaginaryPDF
Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'lib/private/PreviewManager.php')
-rw-r--r--lib/private/PreviewManager.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/PreviewManager.php b/lib/private/PreviewManager.php
index 4daf5b2dc1e..f19ff25abb7 100644
--- a/lib/private/PreviewManager.php
+++ b/lib/private/PreviewManager.php
@@ -346,6 +346,7 @@ class PreviewManager implements IPreview {
$this->registerCoreProvider(Preview\MP3::class, '/audio\/mpeg/');
$this->registerCoreProvider(Preview\OpenDocument::class, '/application\/vnd.oasis.opendocument.*/');
$this->registerCoreProvider(Preview\Imaginary::class, Preview\Imaginary::supportedMimeTypes());
+ $this->registerCoreProvider(Preview\ImaginaryPDF::class, Preview\ImaginaryPDF::supportedMimeTypes());
// SVG and Bitmap require imagick
if ($this->imagickSupport->hasExtension()) {