Browse Source

Delete reactions added to issues and comments when deleting repository (#4232)

tags/v1.5.0-dev
Lauris BH techknowlogick 7 years ago
parent
commit
3ae658b26d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      models/repo.go

+ 3
- 0
models/repo.go View File

@@ -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.


Loading…
Cancel
Save