aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/models.go2
-rw-r--r--models/user.go2
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