mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-08-01 17:38:33 +00:00
Move some issue methods as functions (#19255)
* Move some issue methods as functions * Fix bug
This commit is contained in:
parent
bd97736b9c
commit
74731c3a5a
19 changed files with 63 additions and 84 deletions
|
@ -14,7 +14,7 @@ import (
|
|||
func ChangeContent(issue *models.Issue, doer *user_model.User, content string) (err error) {
|
||||
oldContent := issue.Content
|
||||
|
||||
if err := issue.ChangeContent(doer, content); err != nil {
|
||||
if err := models.ChangeIssueContent(issue, doer, content); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue