diff options
author | Unknown <joe2010xtmf@163.com> | 2014-04-11 13:24:19 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-04-11 13:24:19 -0400 |
commit | 7d07b58114199f682a9caa059f239e24c820dc41 (patch) | |
tree | 00060dfae754cdbb60726cafe9264252407c62fc /models | |
parent | 4c6e0e94995b95d3493c6641fbb5a528c6d6c134 (diff) | |
download | gitea-7d07b58114199f682a9caa059f239e24c820dc41.tar.gz gitea-7d07b58114199f682a9caa059f239e24c820dc41.zip |
UPDATE README
Diffstat (limited to 'models')
-rw-r--r-- | models/models.go | 2 | ||||
-rw-r--r-- | models/user.go | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/models/models.go b/models/models.go index ee96207d10..b380d0e0f2 100644 --- a/models/models.go +++ b/models/models.go @@ -32,7 +32,7 @@ var ( func init() { tables = append(tables, new(User), new(PublicKey), new(Repository), new(Watch), - new(Action), new(Access), new(Issue), new(Comment), new(Oauth2)) + new(Action), new(Access), new(Issue), new(Comment), new(Oauth2), new(Follow)) } func LoadModelsConfig() { diff --git a/models/user.go b/models/user.go index b2fddd0a1d..5274970fa0 100644 --- a/models/user.go +++ b/models/user.go @@ -294,6 +294,8 @@ func DeleteUser(user *User) error { return err } + // Delete oauth2. + // Delete all feeds. if _, err = orm.Delete(&Action{UserId: user.Id}); err != nil { return err |