mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
fix: web search timeline visibility (#29518)
This commit is contained in:
parent
e7ba8d3632
commit
6da890ee37
1 changed files with 5 additions and 2 deletions
|
|
@ -34,6 +34,7 @@
|
|||
import {
|
||||
type AlbumResponseDto,
|
||||
type AssetResponseDto,
|
||||
AssetVisibility,
|
||||
getPerson,
|
||||
getTagById,
|
||||
type MetadataSearchDto,
|
||||
|
|
@ -141,8 +142,10 @@
|
|||
try {
|
||||
const { albums, assets } =
|
||||
('query' in searchDto || 'queryAssetId' in searchDto) && smartSearchEnabled
|
||||
? await searchSmart({ smartSearchDto: { ...searchDto, language: $lang } })
|
||||
: await searchAssets({ metadataSearchDto: searchDto });
|
||||
? await searchSmart({
|
||||
smartSearchDto: { visibility: AssetVisibility.Timeline, ...searchDto, language: $lang },
|
||||
})
|
||||
: await searchAssets({ metadataSearchDto: { visibility: AssetVisibility.Timeline, ...searchDto } });
|
||||
|
||||
searchResultAlbums.push(...albums.items);
|
||||
searchResultAssets.push(...assets.items);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue