mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28: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)
|
? (userToConvert.source as APISource)
|
||||||
: undefined,
|
: undefined,
|
||||||
// TODO: Add static avatar and header
|
// TODO: Add static avatar and header
|
||||||
avatar_static: "",
|
avatar_static: getAvatarUrl(userToConvert, config),
|
||||||
header_static: "",
|
header_static: getHeaderUrl(userToConvert, config),
|
||||||
acct:
|
acct:
|
||||||
userToConvert.instance === null
|
userToConvert.instance === null
|
||||||
? userToConvert.username
|
? userToConvert.username
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue