loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Commit-Dropdown: Show Author of commit if available (#30272)

As in commits page we show the author of the commit in the commits
dropdown and not the committer.

Commits Page:
![Screenshot from 2024-04-03
22-34-41](https://github.com/go-gitea/gitea/assets/1135157/1c7c5c19-6d0a-4176-8a87-7bca6a0c6dc8)

and the same contents in our dropdown:

![image](https://github.com/go-gitea/gitea/assets/1135157/aa094af2-c369-47ac-9c27-ca208d1d03f0)

fixes #29588

(cherry picked from commit 07bcfc171bcccfe78a86c7b4b3f9b729ba7d60b6)

authored by

sebastian-sauer and committed by
Gergely Nagy
300c8ded b0ff1a17

+4 -4
+4 -4
services/pull/pull.go
··· 967 967 for _, commit := range prInfo.Commits { 968 968 var committerOrAuthorName string 969 969 var commitTime time.Time 970 - if commit.Committer != nil { 971 - committerOrAuthorName = commit.Committer.Name 972 - commitTime = commit.Committer.When 973 - } else { 970 + if commit.Author != nil { 974 971 committerOrAuthorName = commit.Author.Name 975 972 commitTime = commit.Author.When 973 + } else { 974 + committerOrAuthorName = commit.Committer.Name 975 + commitTime = commit.Committer.When 976 976 } 977 977 978 978 commits = append(commits, CommitInfo{