From 329ef760bfc46d53e27d5e1f192b98b890928fd0 Mon Sep 17 00:00:00 2001 From: tamaina Date: Thu, 29 Dec 2022 14:54:31 +0000 Subject: [PATCH] fix(server): /emoji to accept `@.` host expression --- packages/backend/src/server/web/ClientServerService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/server/web/ClientServerService.ts b/packages/backend/src/server/web/ClientServerService.ts index af1ff91ac9..84e8481d55 100644 --- a/packages/backend/src/server/web/ClientServerService.ts +++ b/packages/backend/src/server/web/ClientServerService.ts @@ -232,7 +232,8 @@ export class ClientServerService { const host = path.split('@')[1]?.replace('.webp', ''); const emoji = await this.emojisRepository.findOneBy({ - host: host == null ? IsNull() : host, + // `@.` is the spec of ReactionService.decodeReaction + host: (host == null || host === '.') ? IsNull() : host, name: name, });