mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
refactor(api): 🏷️ Begin porting all code over to new schemas
This commit is contained in:
parent
fda1167234
commit
bff1c5f734
32 changed files with 171 additions and 264 deletions
|
|
@ -132,9 +132,10 @@ export default apiRoute((app) =>
|
|||
},
|
||||
{
|
||||
rel: "avatar",
|
||||
// Default avatars are SVGs
|
||||
type:
|
||||
user.data.source.avatar?.content_type ||
|
||||
"application/octet-stream",
|
||||
user.avatar?.getPreferredMimeType() ??
|
||||
"image/svg+xml",
|
||||
href: user.getAvatarUrl(config),
|
||||
},
|
||||
].filter(Boolean) as {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue