From 870d517ce3eaa4583def882bb6004bcb520caa73 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 19 Feb 2024 14:56:02 -0600 Subject: [PATCH] fix(web): don't show motion part in search result (#7210) fix: don't show motion part in search result --- web/src/routes/(user)/search/+page.svelte | 4 ++-- web/src/routes/(user)/search/+page.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/routes/(user)/search/+page.svelte b/web/src/routes/(user)/search/+page.svelte index f914011dc2..a9e8054e02 100644 --- a/web/src/routes/(user)/search/+page.svelte +++ b/web/src/routes/(user)/search/+page.svelte @@ -128,10 +128,10 @@ responses = payload && 'query' in payload ? await searchSmart({ - smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true }, + smartSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true }, }) : await searchMetadata({ - metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true }, + metadataSearchDto: { ...payload, page: Number.parseInt(currentPage), withExif: true, isVisible: true }, }); if (searchResultAssets) { diff --git a/web/src/routes/(user)/search/+page.ts b/web/src/routes/(user)/search/+page.ts index b2997e70b0..f17fa91e95 100644 --- a/web/src/routes/(user)/search/+page.ts +++ b/web/src/routes/(user)/search/+page.ts @@ -22,8 +22,8 @@ export const load = (async (data) => { results = payload && 'query' in payload - ? await searchSmart({ smartSearchDto: { ...payload, withExif: true } }) - : await searchMetadata({ metadataSearchDto: { ...payload, withExif: true } }); + ? await searchSmart({ smartSearchDto: { ...payload, withExif: true, isVisible: true } }) + : await searchMetadata({ metadataSearchDto: { ...payload, withExif: true, isVisible: true } }); } return {