Upgrade lemmy-js-client to 0.18.0-rc.2 (#1445)

* Updating translations.

* Upgrading lemmy-js-client.
This commit is contained in:
Dessalines 2023-06-21 15:08:21 -04:00 committed by GitHub
parent 101b830d87
commit 5c55b41971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 18 deletions

View file

@ -11,7 +11,9 @@ let manifest: Awaited<ReturnType<typeof generateManifestJson>> | undefined =
export default async (req: Request, res: Response) => {
if (!manifest) {
const headers = setForwardedHeaders(req.headers);
const client = wrapClient(new LemmyHttp(getHttpBaseInternal(), headers));
const client = wrapClient(
new LemmyHttp(getHttpBaseInternal(), { fetchFunction: fetch, headers })
);
const site = await client.getSite({});
if (site.state === "success") {