diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2018-12-11 04:01:01 +0800 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-12-10 22:01:01 +0200 |
commit | 1b3404eacaa679c2c06d6a3b63c83a4bec5649d5 (patch) | |
tree | 2cd24d9330581d51a3a3851879cab59ace27b92b /models/repo.go | |
parent | 928417ae39c835edc955c8bb9a02eab2733294c3 (diff) | |
download | gitea-1b3404eacaa679c2c06d6a3b63c83a4bec5649d5.tar.gz gitea-1b3404eacaa679c2c06d6a3b63c83a4bec5649d5.zip |
fix forgot deletion of notification when delete repository (#5506)
Diffstat (limited to 'models/repo.go')
-rw-r--r-- | models/repo.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go index a3e3838186..564790e57a 100644 --- a/models/repo.go +++ b/models/repo.go @@ -1771,6 +1771,7 @@ func DeleteRepository(doer *User, uid, repoID int64) error { &RepoRedirect{RedirectRepoID: repoID}, &Webhook{RepoID: repoID}, &HookTask{RepoID: repoID}, + &Notification{RepoID: repoID}, ); err != nil { return fmt.Errorf("deleteBeans: %v", err) } |