feat(api): 🐛 Provide non-static avatar and header URL for users when a static version does not exist

This commit is contained in:
Jesse Wierzbinski 2024-04-14 21:59:40 -10:00
parent 95a79a4585
commit 1aacf7d743
No known key found for this signature in database

View file

@ -758,8 +758,8 @@ export const userToAPI = (
? (userToConvert.source as APISource)
: undefined,
// TODO: Add static avatar and header
avatar_static: "",
header_static: "",
avatar_static: getAvatarUrl(userToConvert, config),
header_static: getHeaderUrl(userToConvert, config),
acct:
userToConvert.instance === null
? userToConvert.username