summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-14 14:32:32 +0800
committerUnknwon <u@gogs.io>2016-01-14 14:32:32 +0800
commitae2c6d42fdaef39108d65c34ce314abdddf2674f (patch)
treee7b231ffa6b001015d69e59f2808efb2d3bd5e05
parentab89be33a9d02cf12e55c12bfe5367c33faac8d5 (diff)
parent688fc515f805d1ca9b64a77056df4e3425ec21b4 (diff)
downloadgitea-ae2c6d42fdaef39108d65c34ce314abdddf2674f.tar.gz
gitea-ae2c6d42fdaef39108d65c34ce314abdddf2674f.zip
Merge pull request #2393 from sapk/fix-issue-2375
Correction for issue #2375
-rw-r--r--models/issue.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/issue.go b/models/issue.go
index 22ea72512c..6188da5c63 100644
--- a/models/issue.go
+++ b/models/issue.go
@@ -1595,13 +1595,13 @@ func createComment(e *xorm.Session, u *User, repo *Repository, issue *Issue, com
// Notify watchers.
act := &Action{
ActUserID: u.Id,
- ActUserName: u.LowerName,
+ ActUserName: u.Name,
ActEmail: u.Email,
OpType: COMMENT_ISSUE,
Content: fmt.Sprintf("%d|%s", issue.Index, strings.Split(content, "\n")[0]),
RepoID: repo.ID,
- RepoUserName: repo.Owner.LowerName,
- RepoName: repo.LowerName,
+ RepoUserName: repo.Owner.Name,
+ RepoName: repo.Name,
IsPrivate: repo.IsPrivate,
}
if err = notifyWatchers(e, act); err != nil {