summaryrefslogtreecommitdiffstats
path: root/models/issue_reaction.go
diff options
context:
space:
mode:
authorKN4CK3R <admin@oldschoolhack.me>2021-11-10 04:21:01 +0100
committerGitHub <noreply@github.com>2021-11-09 22:21:01 -0500
commitedbaa5d3f05b5ca397524587ba9db15edd61bc29 (patch)
treec0359b111705c4873b41c451ccd7076f6ee55c7d /models/issue_reaction.go
parent465fb4169ecbbef5c460c60f1cdf9b5910610d65 (diff)
downloadgitea-edbaa5d3f05b5ca397524587ba9db15edd61bc29.tar.gz
gitea-edbaa5d3f05b5ca397524587ba9db15edd61bc29.zip
Added GetUserByIDCtx. (#17602)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'models/issue_reaction.go')
-rw-r--r--models/issue_reaction.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_reaction.go b/models/issue_reaction.go
index 423eb8b96c..2f64609e99 100644
--- a/models/issue_reaction.go
+++ b/models/issue_reaction.go
@@ -240,7 +240,7 @@ func (r *Reaction) LoadUser() (*User, error) {
if r.User != nil {
return r.User, nil
}
- user, err := getUserByID(db.GetEngine(db.DefaultContext), r.UserID)
+ user, err := GetUserByIDCtx(db.DefaultContext, r.UserID)
if err != nil {
return nil, err
}