mirror of
https://github.com/immich-app/immich.git
synced 2026-07-31 16:11:03 -07:00
chore(deps): update dependency eslint-plugin-unicorn to v72 (#30092)
Co-authored-by: Daniel Dietzler <mail@ddietzler.dev>
This commit is contained in:
co-authored by
Daniel Dietzler
parent
ce022233ae
commit
aa08dad1f5
@@ -128,7 +128,7 @@ export class AssetMediaController {
|
||||
this.logger.deprecate(
|
||||
'Calling the thumbnail endpoint with size=original is deprecated. Use the :id/original endpoint instead',
|
||||
);
|
||||
const [_, reqSearch] = req.url.split('?');
|
||||
const [_, reqSearch] = req.url.split('?', 2);
|
||||
const redirSearchParams = new URLSearchParams(reqSearch);
|
||||
redirSearchParams.delete('size');
|
||||
return res.redirect('original?' + redirSearchParams.toString());
|
||||
@@ -142,7 +142,7 @@ export class AssetMediaController {
|
||||
// viewThumbnailRes is a AssetMediaRedirectResponse
|
||||
// which redirects to the original asset or a specific size to make better use of caching
|
||||
const { targetSize } = viewThumbnailRes;
|
||||
const [reqPath, reqSearch] = req.url.split('?');
|
||||
const [reqPath, reqSearch] = req.url.split('?', 2);
|
||||
let redirPath: string;
|
||||
const redirSearchParams = new URLSearchParams(reqSearch);
|
||||
if (targetSize === 'original') {
|
||||
|
||||
Reference in New Issue
Block a user