From f8b024b32a5238b4ed49f305ed9db67e84881920 Mon Sep 17 00:00:00 2001 From: kozakura913 <98575220+kozakura913@users.noreply.github.com> Date: Thu, 19 Sep 2024 19:36:42 +0900 Subject: [PATCH] fix --- packages/backend/src/misc/remote-api-utils.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/backend/src/misc/remote-api-utils.ts b/packages/backend/src/misc/remote-api-utils.ts index ca501dafab..256994a42a 100644 --- a/packages/backend/src/misc/remote-api-utils.ts +++ b/packages/backend/src/misc/remote-api-utils.ts @@ -23,17 +23,16 @@ export async function emojis( redisForRemoteApis: Redis.Redis, host: string, text:string, -):Promise> { +):Promise<{[k: string]: string}> { const emojis = new Map(); const remote_emojis = await fetch_remote_emojis(config, httpRequestService, redisForRemoteApis, host); for (const [key, value] of remote_emojis) { const name = ':' + key + ':'; if (text.indexOf(name) !== -1) { - console.log(key); emojis.set(key, value); } } - return emojis; + return Object.fromEntries(emojis); } export async function fetch_remote_emojis(