fix: rename to GetPossibleUserByID

This commit is contained in:
Jason Song
2023-01-04 18:10:30 +08:00
parent 0887e98f2a
commit 6148e4c940
6 changed files with 7 additions and 7 deletions

View File

@ -235,7 +235,7 @@ func (issue *Issue) LoadLabels(ctx context.Context) (err error) {
// LoadPoster loads poster
func (issue *Issue) LoadPoster(ctx context.Context) (err error) {
if issue.Poster == nil {
issue.Poster, err = user_model.GetPossbileUserByID(ctx, issue.PosterID)
issue.Poster, err = user_model.GetPossibleUserByID(ctx, issue.PosterID)
if err != nil {
issue.PosterID = -1
issue.Poster = user_model.NewGhostUser()