mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix(api): 🐛 Fix false values not correctly falling back to generic mime type
This commit is contained in:
parent
d06301ed72
commit
1298b3732e
|
|
@ -137,8 +137,9 @@ export default apiRoute((app) =>
|
|||
},
|
||||
{
|
||||
rel: "avatar",
|
||||
// TODO: don't... don't use the mime type from the file extension
|
||||
type:
|
||||
lookup(user.getAvatarUrl(config)) ??
|
||||
lookup(user.getAvatarUrl(config)) ||
|
||||
"application/octet-stream",
|
||||
href: user.getAvatarUrl(config),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue