summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/repo.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/models/repo.go b/models/repo.go
index c95c867f37..f4923cf4a9 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -1848,6 +1848,9 @@ func DeleteRepository(doer *User, uid, repoID int64) error {
if _, err = sess.In("issue_id", issueIDs).Delete(&IssueUser{}); err != nil {
return err
}
+ if _, err = sess.In("issue_id", issueIDs).Delete(&Reaction{}); err != nil {
+ return err
+ }
attachments := make([]*Attachment, 0, 5)
if err = sess.