mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-01 07:09:21 +01:00
Fix wrong publisher id (#14212)
Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
parent
0f99edf123
commit
8c086bae6e
1 changed files with 5 additions and 3 deletions
|
@ -63,9 +63,11 @@ func createTag(gitRepo *git.Repository, rel *models.Release) error {
|
|||
return fmt.Errorf("CommitsCount: %v", err)
|
||||
}
|
||||
|
||||
u, err := models.GetUserByEmail(commit.Author.Email)
|
||||
if err == nil {
|
||||
rel.PublisherID = u.ID
|
||||
if rel.PublisherID <= 0 {
|
||||
u, err := models.GetUserByEmail(commit.Author.Email)
|
||||
if err == nil {
|
||||
rel.PublisherID = u.ID
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue