1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Move issue change content from models to service (#8711)

* Move issue change content from models to service

* fix lint
This commit is contained in:
Lunny Xiao
2019-10-30 16:36:25 +08:00
committed by Lauris BH
parent 56ebc0c003
commit f694bb45d7
4 changed files with 63 additions and 43 deletions

View File

@@ -1066,7 +1066,7 @@ func UpdateIssueContent(ctx *context.Context) {
}
content := ctx.Query("content")
if err := issue.ChangeContent(ctx.User, content); err != nil {
if err := issue_service.ChangeContent(issue, ctx.User, content); err != nil {
ctx.ServerError("ChangeContent", err)
return
}