mirror of https://github.com/go-gitea/gitea.git
Fix assets on release webhook (#8283)
This commit is contained in:
parent
0ed5a647dd
commit
e51d91a258
|
@ -397,13 +397,15 @@ func UpdateRelease(doer *User, gitRepo *git.Repository, rel *Release, attachment
|
|||
return err
|
||||
}
|
||||
|
||||
if err = addReleaseAttachments(rel.ID, attachmentUUIDs); err != nil {
|
||||
log.Error("addReleaseAttachments: %v", err)
|
||||
}
|
||||
|
||||
err = rel.loadAttributes(x)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = addReleaseAttachments(rel.ID, attachmentUUIDs)
|
||||
|
||||
mode, _ := AccessLevel(doer, rel.Repo)
|
||||
if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{
|
||||
Action: api.HookReleaseUpdated,
|
||||
|
|
Loading…
Reference in New Issue