# Support Forgejo and Gitea avatars in git blame \(\#41813\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 284d8f790aeb7b3f032e3343203c8588ffceb0b2

Requested commit: 284d8f790aeb7b3f032e3343203c8588ffceb0b2

Commit: 284d8f790aeb7b3f032e3343203c8588ffceb0b2

Tree: dfee33bffe390df29c0560c1c4c7f90ee187ae13

Author: ᴀᴍᴛᴏᴀᴇʀ

Committer: GitHub

## Message

```
Support Forgejo and Gitea avatars in git blame (#41813)

Part of #11043.

Codeberg is a public instance of Forgejo, as confirmed by the API
documentation at https://codeberg.org/api/swagger. Therefore, I renamed
the related component from codeberg to forgejo and added codeberg.org as
a public instance.

Furthermore, to optimize request speed for the commit API, I set
`stat=false&verification=false&files=false`.

<img width="1650" height="1268" alt="CleanShot 2025-11-03 at 19 57
06@2x"
src="https://github.com/user-attachments/assets/c1b4129e-f324-41c2-86dc-5e4f7403c046"
/>

<br/>
<br/>

Regarding Gitea Support: 

Forgejo is a fork of Gitea, and their APIs are currently identical
(e.g., for getting avatars). However, to future-proof against potential
API divergence, I decided to treat them as separate entities. The
current gitea implementation is essentially a copy of the forgejo file
with the relevant type names and the public instance URL updated.

Release Notes:

- Added Support for Forgejo and Gitea avatars in git blame
```

## Parents

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

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