fix: don't resolve search when not signed in

pull/725/head
三咲智子 2023-01-03 11:25:02 +08:00
rodzic f467958cd9
commit 269fc30afd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 69992F2250DFD93E
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -25,7 +25,7 @@ export function useSearch(query: MaybeRef<string>, 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