mirror of
https://github.com/sim1222/misskey.git
synced 2025-07-04 01:40:04 +09:00
fix type
This commit is contained in:
@ -80,7 +80,7 @@ export class ExportCustomEmojisProcessorService {
|
||||
});
|
||||
|
||||
for (const emoji of customEmojis) {
|
||||
const ext = mime.extension(emoji.type);
|
||||
const ext = mime.extension(emoji.type ?? 'image/png');
|
||||
const fileName = emoji.name + (ext ? '.' + ext : '');
|
||||
const emojiPath = path + '/' + fileName;
|
||||
fs.writeFileSync(emojiPath, '', 'binary');
|
||||
|
Reference in New Issue
Block a user