matrix-org / matrix-appservice-slack

A Matrix <--> Slack bridge
Apache License 2.0
275 stars 72 forks source link

Ignore generic avatars from Slack #310

Open auscompgeek opened 5 years ago

auscompgeek commented 5 years ago

Potentially terrible feature request, but here goes anyway.

Slack now has very unimaginative fallback user images - they all look like this, but with different colours:

Slack default avatar

I personally feel Riot's fallback avatar generation is more useful, but opinions may differ here. :man_shrugging:

This is a request to ignore the default avatars when fetching from Gravatar (i.e. iff the avatar URL is Gravatar, and we get the default, ignore it).

Cadair commented 5 years ago

Do you have examples of what we could use to detect the default? We would also want to be able to unset avatars if they changed to a default one.

auscompgeek commented 5 years ago

The only way I can think of is to check whether it's a Gravatar URL, and change the d query parameter (or remove it and check whether the hash of the returned image is the same as the Gravatar logo?).