From 269fc30afda2a8f9ee3c7820855f641ba0954d91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E6=99=BA=E5=AD=90?= Date: Tue, 3 Jan 2023 11:25:02 +0800 Subject: [PATCH] fix: don't resolve search when not signed in --- composables/search.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/search.ts b/composables/search.ts index 18a4e8c4..8eca9016 100644 --- a/composables/search.ts +++ b/composables/search.ts @@ -25,7 +25,7 @@ export function useSearch(query: MaybeRef, options?: UseSearchOptions) { * Based on the source it seems like modifying the params when calling next would result in a new search, * but that doesn't seem to be the case. So instead we just create a new paginator with the new params. */ - paginator = masto.search({ q: unref(query), resolve: true, type: unref(options?.type) }) + paginator = masto.search({ q: unref(query), resolve: !!currentUser.value, type: unref(options?.type) }) const nextResults = await paginator.next() done.value = nextResults.done || false