summaryrefslogtreecommitdiffstats
path: root/services/mailer/mail.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/mailer/mail.go')
-rw-r--r--services/mailer/mail.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/mailer/mail.go b/services/mailer/mail.go
index fa40170d46..4b8e46715f 100644
--- a/services/mailer/mail.go
+++ b/services/mailer/mail.go
@@ -10,7 +10,6 @@ import (
"fmt"
"html/template"
"mime"
- "path"
"regexp"
"strings"
texttmpl "text/template"
@@ -142,7 +141,7 @@ func SendRegisterNotifyMail(locale Locale, u *models.User) {
// SendCollaboratorMail sends mail notification to new collaborator.
func SendCollaboratorMail(u, doer *models.User, repo *models.Repository) {
- repoName := path.Join(repo.Owner.Name, repo.Name)
+ repoName := repo.FullName()
subject := fmt.Sprintf("%s added you to %s", doer.DisplayName(), repoName)
data := map[string]interface{}{