Some sites are missing letter icons

This isn’t happening on Meta, but some other Discourse hosted sites are not showing letter icons for desktop views (in Firefox). They appear to work in the mobile view.

All of the users in this topic, found searching for something else:

In the JSON for webrocker:

{"id":6180,"name":"","username":"webrocker","avatar_template":"https://avatars.discourse.org/v2/letter/w/e19adc/{size}.png"

Reviewing the code, it looks like {first_letter} and {color} get gsubed in in self.system_avatar_template in app/models/user.rb, but size seems special because it changes based on view (hence working for mobile). I’m not clear where size is supposed to be subbed in and is failing to be.

I’ve seen this behavior at Imgur, too.

Я вижу все аватары в той теме в Firefox 55.0.1 (32-разрядная версия):

Вы правы, иногда аватары отсутствуют. Это случается на некоторых сайтах случайно (также на сайтах Discourse). Но перезагрузка страницы решает проблему (для меня) каждый раз. Скорее всего, это в основном проблема Firefox, а не Discourse.

Reload didn’t help. Nor did logging in. Since I don’t have an icon at Let’s Encrypt, the UI got really bad:

I clicked on the :large_blue_circle: number to get that menu, but without a notification it is invisible and unclickable.

In browser console I see only one error, repeated three times:

Unchecked lastError value: Error: Could not establish connection. Receiving end does not exist.  ExtensionCommon.jsm:264
	withLastError resource://gre/modules/ExtensionCommon.jsm:264:9
	wrapPromise/< resource://gre/modules/ExtensionCommon.jsm:315:11

Given the location, the message is not Discourse related, and might or might not be related to the icon problem. I’ll guess I’ll give FF55 a try for this.

1 лайк

It’s not FF55. It’s Privacy Badger. It has decided that cdn.discourse.org and cdn-enterprise.discourse.org are safe, but that avatars.discourse.org is tracking me. The two CDN sites get a nice little DNT check box with “This domain promises to not track you” message, but avatars does not.

4 лайка

Yes, I believe we followed up on this before. Perhaps searching will turn it up.

2 лайка

Found it. This topic can be closed.

1 лайк