From ddf4ade717f6d6653718ac9a85f0de5d7382ffa5 Mon Sep 17 00:00:00 2001 From: Xyphyn Date: Sat, 12 Aug 2023 10:19:23 -0700 Subject: [PATCH] misc: set showInstance to false in search page --- .../components/lemmy/community/CommunityItem.svelte | 6 +++++- src/routes/search/+page.svelte | 10 +++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/lib/components/lemmy/community/CommunityItem.svelte b/src/lib/components/lemmy/community/CommunityItem.svelte index f676ae73..8c360ce2 100644 --- a/src/lib/components/lemmy/community/CommunityItem.svelte +++ b/src/lib/components/lemmy/community/CommunityItem.svelte @@ -22,7 +22,11 @@ - +
diff --git a/src/routes/search/+page.svelte b/src/routes/search/+page.svelte index 3740d8a3..299d16fd 100644 --- a/src/routes/search/+page.svelte +++ b/src/routes/search/+page.svelte @@ -12,6 +12,7 @@ import Pageination from '$lib/components/ui/Pageination.svelte' import Spinner from '$lib/components/ui/loader/Spinner.svelte' import { isComment, isCommunity, isPost, isUser } from '$lib/lemmy/item.js' + import { searchParam } from '$lib/util.js' import type { CommentView, CommunityView, @@ -84,7 +85,7 @@ {:else} {#await data.streamed.object}
@@ -125,12 +126,7 @@ {#if data.results.length > 0} { - $page.url.searchParams.set('page', p.detail.toString()) - goto($page.url, { - invalidateAll: true, - }) - }} + on:change={(p) => searchParam($page.url, 'page', p.detail.toString())} /> {/if} {/if}