Skip to content
Snippets Groups Projects
Commit 329ef760 authored by tamaina's avatar tamaina
Browse files

fix(server): /emoji to accept `@.` host expression

parent 09078de3
No related branches found
No related tags found
No related merge requests found
......@@ -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,
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment