Skip to content

Commit

Permalink
fix(server): /emoji to accept @. host expression
Browse files Browse the repository at this point in the history
  • Loading branch information
tamaina committed Dec 29, 2022
1 parent 09078de commit 329ef76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/backend/src/server/web/ClientServerService.ts
Expand Up @@ -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,
});

Expand Down

0 comments on commit 329ef76

Please sign in to comment.