From: abias Date: Mon, 22 May 2023 23:15:11 +0000 (-0400) Subject: Always replace host with internal host X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/%7B?a=commitdiff_plain;h=ee95bd05fb42049202ecdeb667c2be880717775b;p=lemmy-ui.git Always replace host with internal host --- diff --git a/src/server/index.tsx b/src/server/index.tsx index 05988cf..9d91f14 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -356,7 +356,7 @@ export async function generateManifestBase64(site: Site) { async function fetchIconPng(iconUrl: string) { return await fetch( - iconUrl.replace(/https?:\/\/localhost:\d+/g, getHttpBaseInternal()) + iconUrl.replace(/https?:\/\/[^\/]+/g, getHttpBaseInternal()) ) .then(res => res.blob()) .then(blob => blob.arrayBuffer());