アバター URL エンドポイント

Is there an endpoint to get the user’s avatar URL?

「いいね!」 1

Call https://meta.discourse.org/u/falco.json and check .user.avatar_template

「いいね!」 4

Checked :+1:t3:

So there is no endpoint for getting the avatar. I have to first reach the user information and then craft something for getting the image URL based on some size?

I was expecting to find something like /users/{user_id}/avatar.json.

「いいね!」 1

Looks like it. What problem are you trying to solve? You want to use the Discourse avatar on some other site?

「いいね!」 1

Yup, that is exactly the case. There are other subdomains holding other apps and we wanted to use the Discourse avatar on them :raised_hands:t3:

「いいね!」 1

ファイル名に 1 を指定すると、最新のものになります。100 はサイズです。任意の値にできます

https//meta.discourse.org/user_avatar/meta.discourse.org/pastawhiskey/100/1.png