Getting user avatar from username

Hi,
I am working on a plugin and I want to display the avatar of users. Is there a way to get a user avatar using their username?

1 Like

You could try making an XHR to the users page. eg.

https://meta.discourse.org/u/bolarinwa_balogun/summary.json

2 Likes

is there is a way to get a user without using making a request? With categories, there is a find category.findBySlug() or category.findbyId(). Is there something like that for users?

Thank you.

1 Like