From ef3b3e8ffd379db2f95c934f7680479a59003957 Mon Sep 17 00:00:00 2001 From: Matias De lellis Date: Tue, 27 Oct 2020 15:13:53 -0300 Subject: [PATCH] Use the same url from thumbails that Photos. --- lib/Service/FileService.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/Service/FileService.php b/lib/Service/FileService.php index 6123392..89510d7 100644 --- a/lib/Service/FileService.php +++ b/lib/Service/FileService.php @@ -65,11 +65,7 @@ class FileService { return null; } - return $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreview', [ - 'file' => $userFolder->getRelativePath($file->getPath()), - 'x' => $sideSize, - 'y' => $sideSize - ]); + return $this->urlGenerator->getAbsoluteURL('core/preview?fileId=' . $fileId .'&x=' . $sideSize . '&y=' . $sideSize . '&a=false&v=' . $file->getETag()); } /**