mirror of https://github.com/go-gitea/gitea.git
Fix #164
This commit is contained in:
parent
6e3dba2cc5
commit
cb505b22ec
|
@ -140,7 +140,7 @@ func SendIssueNotifyMail(user, owner *models.User, repo *models.Repository, issu
|
||||||
content := fmt.Sprintf("%s<br>-<br> <a href=\"%s%s/%s/issues/%d\">View it on Gogs</a>.",
|
content := fmt.Sprintf("%s<br>-<br> <a href=\"%s%s/%s/issues/%d\">View it on Gogs</a>.",
|
||||||
base.RenderSpecialLink([]byte(issue.Content), owner.Name+"/"+repo.Name),
|
base.RenderSpecialLink([]byte(issue.Content), owner.Name+"/"+repo.Name),
|
||||||
base.AppUrl, owner.Name, repo.Name, issue.Index)
|
base.AppUrl, owner.Name, repo.Name, issue.Index)
|
||||||
msg := NewMailMessageFrom(tos, user.Name, subject, content)
|
msg := NewMailMessageFrom(tos, user.Email, subject, content)
|
||||||
msg.Info = fmt.Sprintf("Subject: %s, send issue notify emails", subject)
|
msg.Info = fmt.Sprintf("Subject: %s, send issue notify emails", subject)
|
||||||
SendAsync(&msg)
|
SendAsync(&msg)
|
||||||
return tos, nil
|
return tos, nil
|
||||||
|
@ -165,7 +165,7 @@ func SendIssueMentionMail(r *middleware.Render, user, owner *models.User,
|
||||||
return fmt.Errorf("mail.SendIssueMentionMail(fail to render): %v", err)
|
return fmt.Errorf("mail.SendIssueMentionMail(fail to render): %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
msg := NewMailMessageFrom(tos, user.Name, subject, body)
|
msg := NewMailMessageFrom(tos, user.Email, subject, body)
|
||||||
msg.Info = fmt.Sprintf("Subject: %s, send issue mention emails", subject)
|
msg.Info = fmt.Sprintf("Subject: %s, send issue mention emails", subject)
|
||||||
SendAsync(&msg)
|
SendAsync(&msg)
|
||||||
return nil
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue