Change how the user avatar is exchanged between client und server

This commit is contained in:
Patrick Jentsch
2023-03-16 09:54:48 +01:00
parent 7ea7b6d7a7
commit f8e94a721f
3 changed files with 4 additions and 7 deletions

View File

@ -72,7 +72,7 @@ class UserList extends ResourceList {
return {
'id': user.id,
'member-since': user.member_since,
'avatar': user.avatar ? `/users/${user.id}/avatar` : '/static/images/user_avatar.png',
'avatar': user.avatar,
'username': user.username,
'full-name': user.full_name ? user.full_name : '',
'location': user.location ? user.location : '',