mirror of
https://github.com/go-gitea/gitea
synced 2025-09-28 03:28:13 +00:00
fix: rename to GetPossibleUserByID
This commit is contained in:
@@ -988,8 +988,8 @@ func GetUserByID(ctx context.Context, id int64) (*User, error) {
|
||||
return u, nil
|
||||
}
|
||||
|
||||
// GetPossbileUserByID returns the user if id > 0 or return system usrs if id < 0
|
||||
func GetPossbileUserByID(ctx context.Context, id int64) (*User, error) {
|
||||
// GetPossibleUserByID returns the user if id > 0 or return system usrs if id < 0
|
||||
func GetPossibleUserByID(ctx context.Context, id int64) (*User, error) {
|
||||
switch id {
|
||||
case -1:
|
||||
return NewGhostUser(), nil
|
||||
|
Reference in New Issue
Block a user