From 4eeb77dd5cb028362b218182635faa04613ddc13 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sat, 3 Mar 2018 00:10:37 +0200 Subject: [PATCH] Fix only updated_unix when adding a comment (Backport of #3855 to 1.4 ) --- CHANGELOG.md | 16 ++++++++++++++++ models/issue_comment.go | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2fcd93643a8..306e9a072727 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,22 @@ This changelog goes through all the changes that have been made in each release without substantial changes to our git log; to see the highlights of what has been added to each release, please refer to the [blog](https://blog.gitea.io). +## [1.4.0-rc2](https://github.com/go-gitea/gitea/releases/tag/v1.4.0-rc2) - 2018-03-02 +* SECURITY + * Fix escaping changed title in comments (#3530) (#3534) +  * Escape search query (#3486) (#3488) +* BUGFIXES + * Fix query protected branch bug (#3563) (#3571) + * Fix remove team member issue (#3566) (#3570) + * Fix the protected branch panic issue (#3567) (#3569) + * If Mirrors repository no content is fetched, updated time should not be changed (#3551) (#3565) + * Bug fix for mirrored repository releases sorted (#3522) (#3555) + * Add issue closed time column to fix activity closed issues list (#3537) (#3540) +  * Update markbates/goth library to support OAuth2 with new dropbox API (#3533) (#3539) +  * Fixes missing avatars in offline mode (#3471) (#3477) +  * Fix synchronization bug in repo indexer (#3455) (#3461) +  * Fix rendering of wiki page list if wiki repo contains other files (#3454) (#3463) + ## [1.4.0-rc1](https://github.com/go-gitea/gitea/releases/tag/v1.4.0-rc1) - 2018-02-01 * BREAKING * Drop deprecated GOGS\_WORK\_DIR use (#2946) diff --git a/models/issue_comment.go b/models/issue_comment.go index f97c108a7fd9..ea83c356ee6f 100644 --- a/models/issue_comment.go +++ b/models/issue_comment.go @@ -418,7 +418,7 @@ func createComment(e *xorm.Session, opts *CreateCommentOptions) (_ *Comment, err } // update the issue's updated_unix column - if err = updateIssueCols(e, opts.Issue); err != nil { + if err = updateIssueCols(e, opts.Issue, "updated_unix"); err != nil { return nil, err }