How to display user avatar

hi folks, the api response gives “thumb”: “/people/2/avatar-{options}.svg?v=34b7249”,
how to resolve this to a image url.

i tried ‘https://{weavy-client}’+thumb

1 Like

I have tried to reconstruct as following, however, this still does not get the image
https://{weavy-client}/${item.thumb.split(’-’)[0]}-192.${item.thumb.split(’.’)[1]}

Try doing a replace on {options} with the image size. Eg. avatar-128.svg for an avatar that is 128x128 px.

1 Like

Thanks Kris… this seems to fix the url part.

Glad to read that is worked out :slight_smile: