Use the same url from thumbails that Photos.

This commit is contained in:
Matias De lellis
2020-10-27 15:13:53 -03:00
parent 9b94f9faef
commit ef3b3e8ffd

View File

@@ -65,11 +65,7 @@ class FileService {
return null; return null;
} }
return $this->urlGenerator->linkToRouteAbsolute('core.Preview.getPreview', [ return $this->urlGenerator->getAbsoluteURL('core/preview?fileId=' . $fileId .'&x=' . $sideSize . '&y=' . $sideSize . '&a=false&v=' . $file->getETag());
'file' => $userFolder->getRelativePath($file->getPath()),
'x' => $sideSize,
'y' => $sideSize
]);
} }
/** /**