Added GetUserByIDCtx. (#17602)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
KN4CK3R 2021-11-10 04:21:01 +01:00 committed by GitHub
parent 465fb4169e
commit edbaa5d3f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 5 deletions

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
}