summaryrefslogtreecommitdiffstats
path: root/models/action.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-06-25 05:27:17 -0400
committerUnknown <joe2010xtmf@163.com>2014-06-25 05:27:17 -0400
commit8644c571dbcb964a338565c8042ff71957030e52 (patch)
tree6c6add95a812afe2c309304b95346655a2f50c0c /models/action.go
parent43b33440b53c79a22de08880851b5b55e9b6a4b3 (diff)
downloadgitea-8644c571dbcb964a338565c8042ff71957030e52.tar.gz
gitea-8644c571dbcb964a338565c8042ff71957030e52.zip
Mirror bug fix on create repo action
Diffstat (limited to 'models/action.go')
-rw-r--r--models/action.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go
index bbbe2134e1..55557da2ff 100644
--- a/models/action.go
+++ b/models/action.go
@@ -184,7 +184,8 @@ func CommitRepoAction(userId, repoUserId int64, userName, actEmail string,
// NewRepoAction adds new action for creating repository.
func NewRepoAction(u *User, repo *Repository) (err error) {
if err = NotifyWatchers(&Action{ActUserId: u.Id, ActUserName: u.Name, ActEmail: u.Email,
- OpType: OP_CREATE_REPO, RepoId: repo.Id, RepoName: repo.Name, IsPrivate: repo.IsPrivate}); err != nil {
+ OpType: OP_CREATE_REPO, RepoId: repo.Id, RepoUserName: repo.Owner.Name, RepoName: repo.Name,
+ IsPrivate: repo.IsPrivate}); err != nil {
log.Error("action.NewRepoAction(notify watchers): %d/%s", u.Id, repo.Name)
return err
}