mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Added GetUserByIDCtx. (#17602)
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
parent
465fb4169e
commit
edbaa5d3f0
3 changed files with 10 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue