mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 16:38:19 +01:00
feat(api): 🐛 Provide non-static avatar and header URL for users when a static version does not exist
This commit is contained in:
parent
95a79a4585
commit
1aacf7d743
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue