From 634cbaad2b8d091a2a3065de81e0b2b76daa5ef7 Mon Sep 17 00:00:00 2001 From: Lanre Adelowo Date: Mon, 4 Feb 2019 00:21:08 +0100 Subject: show user who created the repository instead of the organization in action feed (#5948) --- models/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models') diff --git a/models/repo.go b/models/repo.go index 894698a7c0..5e96a4e931 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1359,14 +1359,14 @@ func createRepository(e *xorm.Session, doer, u *User, repo *Repository) (err err return fmt.Errorf("watchRepo: %v", err) } } - if err = newRepoAction(e, u, repo); err != nil { + if err = newRepoAction(e, doer, repo); err != nil { return fmt.Errorf("newRepoAction: %v", err) } return nil } -// CreateRepository creates a repository for the user/organization u. +// CreateRepository creates a repository for the user/organization. func CreateRepository(doer, u *User, opts CreateRepoOptions) (_ *Repository, err error) { if !doer.IsAdmin && !u.CanCreateRepo() { return nil, ErrReachLimitOfRepo{u.MaxRepoCreation} -- cgit v1.2.3