Skip to content

High performance self-hosted photo and video management solution.

fix: web search timeline visibility (#29518)

Daniel Dietzler6da890ee37d2
diff --git a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
index 40bdc4b01f..a174ea2a04 100644
--- a/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
+++ b/web/src/routes/(user)/search/[[photos=photos]]/[[assetId=id]]/+page.svelte
@@ -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);