Letter avatars broken in 1.5b5?

AI-generated summary

Users reported that letter avatars broke after upgrading to Discourse 1.5b5(33), with links pointing to incorrect proxy paths instead of the expected format Stephen. mrosas identified a recent code commit as the likely cause. bweissman provided a temporary workaround by changing the external system avatars URL to https://avatars.discourse.org/v2/letter/{first_letter}/{color}/{size}.png. Stephen confirmed that a launcher rebuild permanently resolved the issue, though he questioned why the upgrade button was available without a prerequisite rebuild. sam confirmed the rebuild requirement and promised to add a warning to the upgrade page, which Stephen appreciated. Additionally, tgxworld noted the issue persisted in development mode due to nginx configuration. sam and mpalmer discussed adding a specific route for development environments to handle avatar generation internally. The thread was subsequently closed by sam as the issue was considered resolved.

We’ve just upgraded to 1.5b5(33) and letter avatars aren’t working.

They link to:

/letter_avatar_proxy/v2/letter/l/a6a055/45.png

Our site setting is still:

/letter_avatar_proxy/v2/letter/{first_letter}/{color}/{size}.png

While I notice that avatars here on meta are being served from avatars.discourse.org

Any ideas?

2 « J'aime »

Ditto for us.

Looks like there were changes that went in recently impacting this code here:

https://github.com/discourse/discourse/commit/88f1a8f0b12a4bc61e6b521d0156012b4fd9aec9

At least until they fix it, changing the external system avatars URL to “https://avatars.discourse.org/v2/letter/{first_letter}/{color}/{size}.png” fixed the problem for me.

Looks like this requires a launcher rebuild to resolve, avatars are working once again.

Presumably grabbing the latest build via rebuild either creates or grabs local copies of these images. All you’re doing above is using the versions hosted on another site.

@sam if a beta upgrade isn’t going to work correctly until a rebuild has happened, isn’t it a bit silly to prompt the user with an upgrade button in the back end?

2 « J'aime »

Confirmed, you must rebuild to get the fix, I will see if I can add a big red warning on /admin/upgrade page

3 « J'aime »

That’ll do it. Thanks!

The avatars breaks in development mode though since nginx is not running on top of the rails web server. :grin:

2 « J'aime »

Yeah I noticed that, maybe we should add a route for it, mainly for dev @mpalmer

1 « J'aime »

Would that be a route for /letter_avatar_proxy to feed back into the internal avatar generation code? I think that’d be reasonable.

3 « J'aime »

I think we sorted this out a while back, closing, flag to reopen if still an issue.

2 « J'aime »