mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
fix: rename to GetPossibleUserByID
This commit is contained in:
6 files changed
+7
-7
No files matched your search
+2
-2
@@ -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