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

View file

@ -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,