mirror of
				https://codeberg.org/forgejo/forgejo.git
				synced 2025-10-31 06:21:11 +00:00 
			
		
		
		
	[GITEA] enable system users search via the API
Refs: https://codeberg.org/forgejo/forgejo/issues/1403 (cherry picked from commit87bd40411e) Conflicts: routers/api/v1/user/user.go https://codeberg.org/forgejo/forgejo/pulls/1469 (cherry picked from commit74f70ca873) (cherry picked from commit673a75bb43) (cherry picked from commitfcd4535ac6) (cherry picked from commit56b229f22e) (cherry picked from commit45b922ae76)
This commit is contained in:
		
					parent
					
						
							
								6d83f86cf0
							
						
					
				
			
			
				commit
				
					
						03805f3bf4
					
				
			
		
					 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