mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-29 01:18:25 +01:00
fix(server): エクスポートした絵文字の拡張子がfalseになることがあるのを修正
This commit is contained in:
parent
b14e347da1
commit
3e00ce0d88
1 changed files with 2 additions and 1 deletions
|
@ -65,7 +65,8 @@ export async function exportCustomEmojis(job: Bull.Job, done: () => void): Promi
|
|||
|
||||
for (const emoji of customEmojis) {
|
||||
const exportId = ulid().toLowerCase();
|
||||
const emojiPath = path + '/' + exportId + '.' + mime.extension(emoji.type);
|
||||
const ext = mime.extension(emoji.type);
|
||||
const emojiPath = path + '/' + exportId + (ext ? '.' + ext : '');
|
||||
fs.writeFileSync(emojiPath, '', 'binary');
|
||||
let downloaded = false;
|
||||
|
||||
|
|
Loading…
Reference in a new issue