fix: lemmy searches return empty

This commit is contained in:
Xylight committed 2026-02-08 16:04:39 -08:00
1 parent 7bddf16559
commit f7af04e772
2 files changed
+4 -3

No files matched your search

+2 -1
View File
@@ -15,4 +15,5 @@ yarn.lock
playwright-report
test-results
.vscode
.vscode
*TS.md
+2 -2
View File
@@ -8,8 +8,8 @@ import { getItemPublished } from '$lib/feature/legacy/item'
export async function load({ url, fetch }) {
const query = url.searchParams.get('q')
const page = Number(url.searchParams.get('page')) || 1
const community = Number(url.searchParams.get('community'))
const creator = Number(url.searchParams.get('creator'))
const community = Number(url.searchParams.get('community')) || undefined
const creator = Number(url.searchParams.get('creator')) || undefined
const sort = url.searchParams.get('sort') || 'New'
const type =
url.searchParams.get('type') ||