feat: add cross-album search, auto-rules, album UI redesign, editorial archiving and pdf download
This commit is contained in:
1 parent
9c0d43b1ec
commit
375e5b8b7d
23 files changed
+1153
-43
No files matched your search
@@ -45,7 +45,9 @@ export function createAlbumCatalog({ grants, immich }: AlbumCatalogDependencies)
|
||||
input: SearchVisiblePhotosInput,
|
||||
): Promise<ImmichSearchPage> {
|
||||
const grantedAlbumIds = await currentGrantIds(grants, editorialId);
|
||||
const albumIds = authorizedSearchAlbums(grantedAlbumIds, input.requestedAlbumId);
|
||||
const albumIds = input.requestedAlbumId
|
||||
? authorizedSearchAlbums(grantedAlbumIds, input.requestedAlbumId)
|
||||
: grantedAlbumIds;
|
||||
if (albumIds.length === 0) {
|
||||
return emptySearchPage();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user