]> Untitled Git - lemmy-ui.git/commitdiff
Always replace host with internal host
authorabias <abias1122@gmail.com>
Mon, 22 May 2023 23:15:11 +0000 (19:15 -0400)
committerabias <abias1122@gmail.com>
Mon, 22 May 2023 23:15:11 +0000 (19:15 -0400)
src/server/index.tsx

index 05988cf76c7d03287059f6f143b5f646ecdf2fc9..9d91f14db00fe84429b14d4af275fb1f12b8d152 100644 (file)
@@ -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());