mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-09 03:13:09 +02:00
fix(backend): /emojiにおける拡張子の削除方法を修正 (#12543)
Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
parent
c68d87538a
commit
2eb86e0619
1 changed files with 2 additions and 2 deletions
|
@ -119,8 +119,8 @@ export class ServerService implements OnApplicationShutdown {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const name = path.split('@')[0].replace('.webp', '');
|
const name = path.split('@')[0].replace(/\.webp$/i, '');
|
||||||
const host = path.split('@')[1]?.replace('.webp', '');
|
const host = path.split('@')[1]?.replace(/\.webp$/i, '');
|
||||||
|
|
||||||
const emoji = await this.emojisRepository.findOneBy({
|
const emoji = await this.emojisRepository.findOneBy({
|
||||||
// `@.` is the spec of ReactionService.decodeReaction
|
// `@.` is the spec of ReactionService.decodeReaction
|
||||||
|
|
Loading…
Reference in a new issue