diff options
author | skyblue <ssx205@gmail.com> | 2014-04-03 11:13:44 +0800 |
---|---|---|
committer | skyblue <ssx205@gmail.com> | 2014-04-03 11:13:44 +0800 |
commit | bbadbbdf685a7f6cb1924442a115aa88bb520e07 (patch) | |
tree | bc3f500110d3ed49b84d742fd85ee36201098c1b /models/repo.go | |
parent | bfdadaa13c5dc289beed8e13c6e0d8a0eabeae37 (diff) | |
parent | 1757a59a999be2c1b3a17244231cad6a579282d4 (diff) |
Merge branch 'dev' of github.com:gogits/gogs into dev
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index 0c808f18..e3270b18 100644 --- a/models/repo.go +++ b/models/repo.go @@ -74,6 +74,7 @@ type Repository struct { NumStars int NumForks int NumIssues int + NumReleases int `xorm:"NOT NULL"` NumClosedIssues int NumOpenIssues int `xorm:"-"` IsPrivate bool @@ -513,6 +514,7 @@ func NotifyWatchers(act *Action) error { continue } + act.Id = 0 act.UserId = watches[i].UserId if _, err = orm.InsertOne(act); err != nil { return errors.New("repo.NotifyWatchers(create action): " + err.Error()) |