Skip to content
Snippets Groups Projects
Unverified Commit 2eb86e06 authored by Nanaka Hiira's avatar Nanaka Hiira Committed by GitHub
Browse files

fix(backend): /emojiにおける拡張子の削除方法を修正 (#12543)


Co-authored-by: default avatarAcid Chicken (硫酸鶏) <root@acid-chicken.com>
parent c68d8753
No related branches found
No related tags found
No related merge requests found
......@@ -119,8 +119,8 @@ export class ServerService implements OnApplicationShutdown {
return;
}
const name = path.split('@')[0].replace('.webp', '');
const host = path.split('@')[1]?.replace('.webp', '');
const name = path.split('@')[0].replace(/\.webp$/i, '');
const host = path.split('@')[1]?.replace(/\.webp$/i, '');
const emoji = await this.emojisRepository.findOneBy({
// `@.` is the spec of ReactionService.decodeReaction
......
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