From c6c023689874287efdfccd7f56c7bc85cb0ac163 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sun, 7 Jul 2024 19:02:43 -0700 Subject: [PATCH] misc: finally drop 0.18 support --- src/lib/lemmy.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/lemmy.ts b/src/lib/lemmy.ts index 09298d49..e41f30e6 100644 --- a/src/lib/lemmy.ts +++ b/src/lib/lemmy.ts @@ -44,10 +44,7 @@ async function customFetch( } } - const url = toURL(input) - if (auth && url) url.searchParams.set('auth', auth) - - const res = await f(url ?? input, init) + const res = await f(input, init) if (!res.ok) error(res.status, await res.text()) return res }