mirror of
https://github.com/go-gitea/gitea
synced 2025-11-16 11:18:12 +00:00
Move and merge some functions about issue
This commit is contained in:
@@ -630,7 +630,7 @@ func EditPullRequest(ctx *context.APIContext) {
|
||||
if form.Body != nil {
|
||||
err = issue_service.ChangeContent(ctx, issue, ctx.Doer, *form.Body, issue.ContentVersion)
|
||||
if err != nil {
|
||||
if errors.Is(err, issues_model.ErrIssueAlreadyChanged) {
|
||||
if errors.Is(err, issue_service.ErrIssueAlreadyChanged) {
|
||||
ctx.Error(http.StatusBadRequest, "ChangeContent", err)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user