From: self <self@awful.systems> Date: Mon, 21 Aug 2023 17:12:13 +0000 (-0700) Subject: temporarily disable icon creation X-Git-Url: http://these/git/%7B%60%24%7BarchiveTodayUrl%7D/%24%7B%60data:application/static/git-favicon.png?a=commitdiff_plain;h=407c51df93291c82b8de8b692076342b8b63f591;p=lemmy-ui.git temporarily disable icon creation disable icon creation due to a bug where icons can somehow get corrupted --- diff --git a/src/server/utils/create-ssr-html.tsx b/src/server/utils/create-ssr-html.tsx index 0958588..ca8e3b6 100644 --- a/src/server/utils/create-ssr-html.tsx +++ b/src/server/utils/create-ssr-html.tsx @@ -29,7 +29,7 @@ export async function createSsrHtml( `<script nonce="${cspNonce}"`, ); - if (!appleTouchIcon) { + if (false) { appleTouchIcon = site?.site_view.site.icon ? `data:image/png;base64,${await sharp( await fetchIconPng(site.site_view.site.icon), diff --git a/src/server/utils/generate-manifest-json.ts b/src/server/utils/generate-manifest-json.ts index 3821b02..52d9ffb 100644 --- a/src/server/utils/generate-manifest-json.ts +++ b/src/server/utils/generate-manifest-json.ts @@ -37,7 +37,7 @@ export default async function ({ path.join(defaultLogoPathDirectory, `icon-${size}x${size}.png`), ).then(buf => buf.toString("base64")); - if (icon) { + if (false) { src = await sharp(icon) .resize(size, size) .png()