mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 17:07:52 +01:00
Merge pull request #2393 from sapk/fix-issue-2375
Correction for issue #2375
This commit is contained in:
commit
ae2c6d42fd
@ -1595,13 +1595,13 @@ func createComment(e *xorm.Session, u *User, repo *Repository, issue *Issue, com
|
|||||||
// Notify watchers.
|
// Notify watchers.
|
||||||
act := &Action{
|
act := &Action{
|
||||||
ActUserID: u.Id,
|
ActUserID: u.Id,
|
||||||
ActUserName: u.LowerName,
|
ActUserName: u.Name,
|
||||||
ActEmail: u.Email,
|
ActEmail: u.Email,
|
||||||
OpType: COMMENT_ISSUE,
|
OpType: COMMENT_ISSUE,
|
||||||
Content: fmt.Sprintf("%d|%s", issue.Index, strings.Split(content, "\n")[0]),
|
Content: fmt.Sprintf("%d|%s", issue.Index, strings.Split(content, "\n")[0]),
|
||||||
RepoID: repo.ID,
|
RepoID: repo.ID,
|
||||||
RepoUserName: repo.Owner.LowerName,
|
RepoUserName: repo.Owner.Name,
|
||||||
RepoName: repo.LowerName,
|
RepoName: repo.Name,
|
||||||
IsPrivate: repo.IsPrivate,
|
IsPrivate: repo.IsPrivate,
|
||||||
}
|
}
|
||||||
if err = notifyWatchers(e, act); err != nil {
|
if err = notifyWatchers(e, act); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user