Fix assets on release webhook (#8283)

This commit is contained in:
Daniel Fonseca de Lira 2019-09-25 16:50:54 -03:00 committed by Lauris BH
parent 0ed5a647dd
commit e51d91a258
1 changed files with 4 additions and 2 deletions

View File

@ -397,13 +397,15 @@ func UpdateRelease(doer *User, gitRepo *git.Repository, rel *Release, attachment
return err return err
} }
if err = addReleaseAttachments(rel.ID, attachmentUUIDs); err != nil {
log.Error("addReleaseAttachments: %v", err)
}
err = rel.loadAttributes(x) err = rel.loadAttributes(x)
if err != nil { if err != nil {
return err return err
} }
err = addReleaseAttachments(rel.ID, attachmentUUIDs)
mode, _ := AccessLevel(doer, rel.Repo) mode, _ := AccessLevel(doer, rel.Repo)
if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{ if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{
Action: api.HookReleaseUpdated, Action: api.HookReleaseUpdated,