mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-04 00:25:23 +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:
1 parent
56ebc0c003
commit
f694bb45d7
4 files changed
+63
-43
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user