mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(api): 🐛 Fix incorrect content_type when uploading and converting emojis
This commit is contained in:
parent
4f070c9b65
commit
7846a03bcf
4 changed files with 6 additions and 4 deletions
|
|
@ -121,7 +121,7 @@ export default class EmojiAdd extends BaseCommand<typeof EmojiAdd> {
|
|||
shortcode: args.shortcode,
|
||||
url: getUrl(uploaded.path, config),
|
||||
visibleInPicker: true,
|
||||
contentType: file.type,
|
||||
contentType: uploaded.uploadedFile.type,
|
||||
})
|
||||
.returning();
|
||||
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ export default class EmojiImport extends BaseCommand<typeof EmojiImport> {
|
|||
shortcode: emoji.emoji.name,
|
||||
url: getUrl(uploaded.path, config),
|
||||
visibleInPicker: true,
|
||||
contentType: file.type,
|
||||
contentType: uploaded.uploadedFile.type,
|
||||
})
|
||||
.execute();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue