summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-10-30 16:36:25 +0800
committerLauris BH <lauris@nix.lv>2019-10-30 10:36:25 +0200
commitf694bb45d79dcc093bc6332eabb3af063bc6b088 (patch)
tree8a9d2551d52a9a4ff13a087df30ed613d748d814 /routers
parent56ebc0c003349cea1c919c9dd408fc83ee79274e (diff)
downloadgitea-f694bb45d79dcc093bc6332eabb3af063bc6b088.tar.gz
gitea-f694bb45d79dcc093bc6332eabb3af063bc6b088.zip
Move issue change content from models to service (#8711)
* Move issue change content from models to service * fix lint
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 12ff0a054c..ac405a1c29 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -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
}