summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2023-04-11 11:24:09 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-07-05 16:20:32 +0200
commit0984970cd8759ae2dcd7dfdfe41d5816bf3c2948 (patch)
treec215c2dfd3235d9d022f01eb0dd7dbdac969547a /apps/files_trashbin/lib
parent79d24bfb8eebd82dd75b15c5503a4bb33563ee69 (diff)
downloadnextcloud-server-0984970cd8759ae2dcd7dfdfe41d5816bf3c2948.tar.gz
nextcloud-server-0984970cd8759ae2dcd7dfdfe41d5816bf3c2948.zip
feat(files): favorites
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_trashbin/lib')
-rw-r--r--apps/files_trashbin/lib/Controller/PreviewController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_trashbin/lib/Controller/PreviewController.php b/apps/files_trashbin/lib/Controller/PreviewController.php
index 652570dccd7..9f60cc8b0b2 100644
--- a/apps/files_trashbin/lib/Controller/PreviewController.php
+++ b/apps/files_trashbin/lib/Controller/PreviewController.php
@@ -119,7 +119,7 @@ class PreviewController extends Controller {
$mimeType = $this->mimeTypeDetector->detectPath($file->getName());
}
- $f = $this->previewManager->getPreview($file, $x, $y, $a, IPreview::MODE_FILL, $mimeType);
+ $f = $this->previewManager->getPreview($file, $x, $y, !$a, IPreview::MODE_FILL, $mimeType);
$response = new Http\FileDisplayResponse($f, Http::STATUS_OK, ['Content-Type' => $f->getMimeType()]);
// Cache previews for 24H