]> Untitled Git - lemmy-ui.git/commitdiff
temporarily disable icon creation
authorself <self@awful.systems>
Mon, 21 Aug 2023 17:12:13 +0000 (10:12 -0700)
committerself <self@awful.systems>
Mon, 21 Aug 2023 17:12:13 +0000 (10:12 -0700)
disable icon creation due to a bug where icons can somehow get corrupted

src/server/utils/create-ssr-html.tsx
src/server/utils/generate-manifest-json.ts

index 0958588d3aeef3e7924e9c150e58647e3c58adcd..ca8e3b61d76aea061aa987478fd4898c1b2343d1 100644 (file)
@@ -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),
index 3821b02b49bef2dc7fcca583e5a41e2bf6661ee2..52d9ffbab73d8e02833799a00c6f4df4a99e5d27 100644 (file)
@@ -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()