diff options
Diffstat (limited to 'models/comment.go')
-rw-r--r-- | models/comment.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/models/comment.go b/models/comment.go index 673ca780..be29e2ba 100644 --- a/models/comment.go +++ b/models/comment.go @@ -275,7 +275,10 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err if err != nil { return nil, err } + } + if _, err = e.Exec("UPDATE `issue` SET updated_unix = ? WHERE id = ?", time.Now().Unix(), opts.Issue.ID); err != nil { + return nil, fmt.Errorf("update issue 'updated_unix': %v", err) } // Notify watchers for whatever action comes in, ignore if no action type. |