summaryrefslogtreecommitdiffstats
path: root/models/issue_comment.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/issue_comment.go')
-rw-r--r--models/issue_comment.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/models/issue_comment.go b/models/issue_comment.go
index f2acd5354f..34c0ecdce5 100644
--- a/models/issue_comment.go
+++ b/models/issue_comment.go
@@ -272,15 +272,15 @@ func (c *Comment) MailParticipants(e Engine, opType ActionType, issue *Issue) (e
return fmt.Errorf("UpdateIssueMentions [%d]: %v", c.IssueID, err)
}
+ content := c.Content
+
switch opType {
- case ActionCommentIssue:
- issue.Content = c.Content
case ActionCloseIssue:
- issue.Content = fmt.Sprintf("Closed #%d", issue.Index)
+ content = fmt.Sprintf("Closed #%d", issue.Index)
case ActionReopenIssue:
- issue.Content = fmt.Sprintf("Reopened #%d", issue.Index)
+ content = fmt.Sprintf("Reopened #%d", issue.Index)
}
- if err = mailIssueCommentToParticipants(e, issue, c.Poster, c, mentions); err != nil {
+ if err = mailIssueCommentToParticipants(e, issue, c.Poster, content, c, mentions); err != nil {
log.Error(4, "mailIssueCommentToParticipants: %v", err)
}