mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-27 02:52:49 +09:00
fix: rename to GetPossibleUserByID
This commit is contained in:
@ -350,7 +350,7 @@ func (c *Comment) LoadPoster(ctx context.Context) (err error) {
|
||||
return nil
|
||||
}
|
||||
|
||||
c.Poster, err = user_model.GetPossbileUserByID(ctx, c.PosterID)
|
||||
c.Poster, err = user_model.GetPossibleUserByID(ctx, c.PosterID)
|
||||
if err != nil {
|
||||
if user_model.IsErrUserNotExist(err) {
|
||||
c.PosterID = -1
|
||||
|
Reference in New Issue
Block a user