diff options
author | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-25 16:43:14 +0800 |
---|---|---|
committer | lunnyxiao <xiaolunwen@gmail.com> | 2014-09-25 16:43:14 +0800 |
commit | 089d934547c88a8c3c7ce5587fcc2481cc98f3a3 (patch) | |
tree | bfc5e58ab41b1555e4ba45888d9b05443742b55e /models/action.go | |
parent | 25268577a53bd326b21866c792d7ec390a6e4d94 (diff) | |
download | gitea-089d934547c88a8c3c7ce5587fcc2481cc98f3a3.tar.gz gitea-089d934547c88a8c3c7ce5587fcc2481cc98f3a3.zip |
add action repousername for transfer
Diffstat (limited to 'models/action.go')
-rw-r--r-- | models/action.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/models/action.go b/models/action.go index b4457656ba..18c956bda1 100644 --- a/models/action.go +++ b/models/action.go @@ -351,7 +351,8 @@ func NewRepoAction(u *User, repo *Repository) (err error) { // TransferRepoAction adds new action for transfering repository. func TransferRepoAction(u, newUser *User, repo *Repository) (err error) { if err = NotifyWatchers(&Action{ActUserId: u.Id, ActUserName: u.Name, ActEmail: u.Email, - OpType: TRANSFER_REPO, RepoId: repo.Id, RepoName: repo.Name, Content: newUser.Name, + OpType: TRANSFER_REPO, RepoId: repo.Id, RepoUserName: repo.Owner.Name, + RepoName: repo.Name, Content: newUser.Name, IsPrivate: repo.IsPrivate}); err != nil { log.Error(4, "NotifyWatchers: %d/%s", u.Id, repo.Name) return err |