[GITEA] enable system users search via the API
Refs: https://codeberg.org/forgejo/forgejo/issues/1403
This commit is contained in:
parent
7ea66ee1c5
commit
87bd40411e
3 changed files with 51 additions and 13 deletions
|
@ -9,10 +9,12 @@ import (
|
|||
"code.gitea.io/gitea/modules/structs"
|
||||
)
|
||||
|
||||
const GhostUserID = -1
|
||||
|
||||
// NewGhostUser creates and returns a fake user for someone has deleted their account.
|
||||
func NewGhostUser() *User {
|
||||
return &User{
|
||||
ID: -1,
|
||||
ID: GhostUserID,
|
||||
Name: "Ghost",
|
||||
LowerName: "ghost",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue