Skip to content

Commit 913ba89

Browse files
committed
Set forceIcon to false by default for preview routes
Signed-off-by: Akhil <akhil@e.email>
1 parent cac44fd commit 913ba89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/Controller/PreviewController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function getPreview(
6767
int $x = 32,
6868
int $y = 32,
6969
bool $a = false,
70-
bool $forceIcon = true,
70+
bool $forceIcon = false,
7171
string $mode = 'fill',
7272
bool $mimeFallback = false): Response {
7373
if ($file === '' || $x === 0 || $y === 0) {
@@ -111,7 +111,7 @@ public function getPreviewByFileId(
111111
int $x = 32,
112112
int $y = 32,
113113
bool $a = false,
114-
bool $forceIcon = true,
114+
bool $forceIcon = false,
115115
string $mode = 'fill',
116116
bool $mimeFallback = false) {
117117
if ($fileId === -1 || $x === 0 || $y === 0) {

0 commit comments

Comments
 (0)