Merge branch 'main' into fix_new_comments_badge

This commit is contained in:
SleeplessOne1917 2023-06-21 21:06:14 +00:00 committed by GitHub
commit a1ead2b90f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 15 additions and 18 deletions

View file

@ -28,7 +28,9 @@ export default async (req: Request, res: Response) => {
const getSiteForm: GetSite = { auth };
const headers = setForwardedHeaders(req.headers);
const client = wrapClient(new LemmyHttp(getHttpBaseInternal(), headers));
const client = wrapClient(
new LemmyHttp(getHttpBaseInternal(), { fetchFunction: fetch, headers })
);
const { path, url, query } = req;

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") {