mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Add owner_name column for table repository for maintaince reason (#9717)
* Add owner_name column for table repository for maintaince reason * refactor * Fix tests * fix test * fix bug when fork repository Co-authored-by: zeripath <art27@cantab.net>
This commit is contained in:
		@@ -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{}{
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user