mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(api): 🐛 Prevent non-images uploaded from not being saved to object storage
This commit is contained in:
parent
268ced27ef
commit
f4af0e2407
2 changed files with 3 additions and 5 deletions
|
|
@ -39,7 +39,7 @@ export const attachmentToAPI = (
|
|||
? `${attachment.width}x${attachment.height}`
|
||||
: undefined,
|
||||
duration: attachment.duration || undefined,
|
||||
length: attachment.size?.toString() || undefined,
|
||||
length: undefined,
|
||||
aspect:
|
||||
attachment.width && attachment.height
|
||||
? attachment.width / attachment.height
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue