summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@sapk.fr>2016-01-12 21:10:56 +0100
committerAntoine GIRARD <sapk@sapk.fr>2016-01-12 21:30:14 +0100
commit688fc515f805d1ca9b64a77056df4e3425ec21b4 (patch)
treeac6b594382559cf18d446cb3ca00e6f70b98fb6b /models
parentfc4a4d38d16e47fe2584bd574872929669de42c1 (diff)
downloadgitea-688fc515f805d1ca9b64a77056df4e3425ec21b4.tar.gz
gitea-688fc515f805d1ca9b64a77056df4e3425ec21b4.zip
Fix username display in lower-cased for comment in Dashboard
Diffstat (limited to 'models')
-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 {