mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
fix: shared link custom URL photo access authentication (#20534)
This commit is contained in:
parent
4179c8a17d
commit
d430b869ac
2 changed files with 9 additions and 3 deletions
|
|
@ -23,8 +23,8 @@ export const isLockedFolderRoute = (route?: string | null) => !!route?.startsWit
|
|||
export const isAssetViewerRoute = (target?: NavigationTarget | null) =>
|
||||
!!(target?.route.id?.endsWith('/[[assetId=id]]') && 'assetId' in (target?.params || {}));
|
||||
|
||||
export function getAssetInfoFromParam({ assetId, key }: { assetId?: string; key?: string }) {
|
||||
return assetId ? getAssetInfo({ id: assetId, key }) : undefined;
|
||||
export function getAssetInfoFromParam({ assetId, slug, key }: { assetId?: string; key?: string; slug?: string }) {
|
||||
return assetId ? getAssetInfo({ id: assetId, slug, key }) : undefined;
|
||||
}
|
||||
|
||||
function currentUrlWithoutAsset() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue