srid / zulip-archive

Zulip Archive viewer (statically generated HTML)
https://funprog.srid.ca
13 stars 1 forks source link

Add Gravatar Avatars as Fallback #29

Closed prikhi closed 3 years ago

prikhi commented 3 years ago

Use the email of a message's sender to create a GravatarUrl profile picture, rendered if there is no AvatarUrl for the message.

Not sure if we want to specify the default image set if there's no gravatar profile picture for the given email, or include a default image in this repo that gravatar can fallback to - either option seems straightforward: https://en.gravatar.com/site/implement/images/

srid commented 3 years ago

Some default (even if it comes from Gravatar official) is always better than having an empty avatar, which can be visually a bit weird.