mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Move reaction to models/issues/ (#19264)
* Move reaction to models/issues/ * Fix test * move the function * improve code * Update models/issues/reaction.go Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
		| @@ -15,6 +15,7 @@ import ( | ||||
| 	repo_model "code.gitea.io/gitea/models/repo" | ||||
| 	"code.gitea.io/gitea/models/unit" | ||||
| 	user_model "code.gitea.io/gitea/models/user" | ||||
| 	"code.gitea.io/gitea/modules/container" | ||||
| 	"code.gitea.io/gitea/modules/log" | ||||
| 	"code.gitea.io/gitea/modules/setting" | ||||
| 	"code.gitea.io/gitea/modules/timeutil" | ||||
| @@ -520,7 +521,7 @@ func (nl NotificationList) getPendingRepoIDs() []int64 { | ||||
| 			ids[notification.RepoID] = struct{}{} | ||||
| 		} | ||||
| 	} | ||||
| 	return keysInt64(ids) | ||||
| 	return container.KeysInt64(ids) | ||||
| } | ||||
|  | ||||
| // LoadRepos loads repositories from database | ||||
| @@ -596,7 +597,7 @@ func (nl NotificationList) getPendingIssueIDs() []int64 { | ||||
| 			ids[notification.IssueID] = struct{}{} | ||||
| 		} | ||||
| 	} | ||||
| 	return keysInt64(ids) | ||||
| 	return container.KeysInt64(ids) | ||||
| } | ||||
|  | ||||
| // LoadIssues loads issues from database | ||||
| @@ -682,7 +683,7 @@ func (nl NotificationList) getPendingCommentIDs() []int64 { | ||||
| 			ids[notification.CommentID] = struct{}{} | ||||
| 		} | ||||
| 	} | ||||
| 	return keysInt64(ids) | ||||
| 	return container.KeysInt64(ids) | ||||
| } | ||||
|  | ||||
| // LoadComments loads comments from database | ||||
|   | ||||
		Reference in New Issue
	
	Block a user