# git_ui: Improve GitHub avatar display \(\#56755\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e80b7443ea62fb555e4fd3762f86aea2365a07ae)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e80b7443ea62fb555e4fd3762f86aea2365a07ae

Requested commit: e80b7443ea62fb555e4fd3762f86aea2365a07ae

Commit: e80b7443ea62fb555e4fd3762f86aea2365a07ae

Tree: f7ea8a46577b05be97ca643f4cc659c2c18fd6d3

Author: Danilo Leal

Committer: GitHub

## Message

```
git_ui: Improve GitHub avatar display (#56755)

We had a problem that became more evident to me in the newly-introduced
History tab in the Git panel where the avatars wouldn't show up for a
long time. Problem was that we were trying to render the avatar before
the GitHub user email came in, and that wouldn't work well because it
would 1) skip the fast CDN (which could get rate-limited fast), and 2)
cache the `None` result. So this improvement works by only attempting to
render the avatar when the email is available.

Release Notes:

- Git UI: Improve the display of user avatars in Git-related surfaces.
```

## Parents

- [58d24a610bef31e1ccf4086ac70053214cdebd91](https://git.cafe/gitcafe/zed/commit/58d24a610bef31e1ccf4086ac70053214cdebd91?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e80b7443ea62fb555e4fd3762f86aea2365a07ae?format=markdown)
