diff options
author | Lanre Adelowo <adelowomailbox@gmail.com> | 2019-02-04 00:21:08 +0100 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2019-02-04 01:21:08 +0200 |
commit | 634cbaad2b8d091a2a3065de81e0b2b76daa5ef7 (patch) | |
tree | ddb214a11816305bbe2d87422adcc72c832a8f5a /models | |
parent | 746cf22d8ae981237bda801c1de691fbede21df9 (diff) | |
download | gitea-634cbaad2b8d091a2a3065de81e0b2b76daa5ef7.tar.gz gitea-634cbaad2b8d091a2a3065de81e0b2b76daa5ef7.zip |
show user who created the repository instead of the organization in action feed (#5948)
Diffstat (limited to 'models')
-rw-r--r-- | models/repo.go | 4 |
1 files changed, 2 insertions, 2 deletions
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} |