Getting user avatar from username


(Bolarinwa Balogun) #1

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?


(Mittineague) #2

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

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


(Bolarinwa Balogun) #3

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.