refactor(api): 🏷️ Begin porting all code over to new schemas

This commit is contained in:
Jesse Wierzbinski 2025-02-12 23:25:22 +01:00
parent fda1167234
commit bff1c5f734
No known key found for this signature in database
32 changed files with 171 additions and 264 deletions

View file

@ -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 {