forked from forgejo/forgejo
Move issue change content from models to service (#8711)
* Move issue change content from models to service * fix lint
This commit is contained in:
parent
56ebc0c003
commit
f694bb45d7
4 changed files with 63 additions and 43 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue