Added GetUserByIDCtx. (#17602)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
KN4CK3R
2021-11-09 22:21:01 -05:00
committed by GitHub
co-authored by wxiaoguang
parent 465fb4169e
commit edbaa5d3f0
3 changed files with 10 additions and 5 deletions
+1 -1
View File
@@ -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
}