From d409c31ad51174fd9db4289e795821bffde48e93 Mon Sep 17 00:00:00 2001 From: PrivateGER Date: Thu, 1 Jun 2023 21:12:03 +0200 Subject: [PATCH] me when I lack a brain --- .../backend/src/queue/processors/db/import-custom-emojis.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/backend/src/queue/processors/db/import-custom-emojis.ts b/packages/backend/src/queue/processors/db/import-custom-emojis.ts index d80ff988b8..7dbb525d35 100644 --- a/packages/backend/src/queue/processors/db/import-custom-emojis.ts +++ b/packages/backend/src/queue/processors/db/import-custom-emojis.ts @@ -106,9 +106,6 @@ export async function importCustomEmojis( emoji.match(/\.(json)$/i), ); - // only go one layer deep, recursion would be weird - containedEmojis.filter((emoji) => !emoji.includes("/")); - for (const emojiPath of containedEmojis) { // strip extension and get filename to use as name const name = path.basename(emojiPath, path.extname(emojiPath));