Merge branch 'main' into fix_new_comments_badge
This commit is contained in:
commit
a1ead2b90f
5 changed files with 15 additions and 18 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue