mirror of
https://github.com/go-gitea/gitea
synced 2024-12-18 15:24:45 +01:00
This reverts commit a37e8b275d
/ #21451
Temporarily revert this PR to be able to continue discussion, and
potentially get it into 1.19.0
This commit is contained in:
parent
5c2089a01d
commit
3f7cab42dc
1 changed files with 7 additions and 8 deletions
|
@ -271,12 +271,13 @@ func UpdateRelease(doer *user_model.User, gitRepo *git.Repository, rel *repo_mod
|
|||
}
|
||||
}
|
||||
|
||||
if !rel.IsDraft {
|
||||
if isCreated {
|
||||
notification.NotifyNewRelease(rel)
|
||||
} else {
|
||||
if !isCreated {
|
||||
notification.NotifyUpdateRelease(doer, rel)
|
||||
return
|
||||
}
|
||||
|
||||
if !rel.IsDraft {
|
||||
notification.NotifyNewRelease(rel)
|
||||
}
|
||||
|
||||
return err
|
||||
|
@ -352,9 +353,7 @@ func DeleteReleaseByID(ctx context.Context, id int64, doer *user_model.User, del
|
|||
}
|
||||
}
|
||||
|
||||
if !rel.IsDraft {
|
||||
notification.NotifyDeleteRelease(doer, rel)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue