Delete reactions added to issues and comments when deleting repository (#4232)
This commit is contained in:
		
							parent
							
								
									406031d3cc
								
							
						
					
					
						commit
						2b8c0bb5e2
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		|  | @ -1848,6 +1848,9 @@ func DeleteRepository(doer *User, uid, repoID int64) error { | ||||||
| 		if _, err = sess.In("issue_id", issueIDs).Delete(&IssueUser{}); err != nil { | 		if _, err = sess.In("issue_id", issueIDs).Delete(&IssueUser{}); err != nil { | ||||||
| 			return err | 			return err | ||||||
| 		} | 		} | ||||||
|  | 		if _, err = sess.In("issue_id", issueIDs).Delete(&Reaction{}); err != nil { | ||||||
|  | 			return err | ||||||
|  | 		} | ||||||
| 
 | 
 | ||||||
| 		attachments := make([]*Attachment, 0, 5) | 		attachments := make([]*Attachment, 0, 5) | ||||||
| 		if err = sess. | 		if err = sess. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue