mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 19:38:23 +00:00 
			
		
		
		
	fix #2529
This commit is contained in:
		
							
								
								
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								gogs.go
									
									
									
									
									
								
							| @@ -17,7 +17,7 @@ import ( | ||||
| 	"github.com/gogits/gogs/modules/setting" | ||||
| ) | ||||
|  | ||||
| const APP_VER = "0.8.25.0130" | ||||
| const APP_VER = "0.8.25.0131" | ||||
|  | ||||
| func init() { | ||||
| 	runtime.GOMAXPROCS(runtime.NumCPU()) | ||||
|   | ||||
| @@ -25,7 +25,7 @@ func GetUserByName(ctx *middleware.Context, name string) *models.User { | ||||
| 	user, err := models.GetUserByName(name) | ||||
| 	if err != nil { | ||||
| 		if models.IsErrUserNotExist(err) { | ||||
| 			ctx.Error(404) | ||||
| 			ctx.Handle(404, "GetUserByName", nil) | ||||
| 		} else { | ||||
| 			ctx.Handle(500, "GetUserByName", err) | ||||
| 		} | ||||
|   | ||||
| @@ -1 +1 @@ | ||||
| 0.8.25.0130 | ||||
| 0.8.25.0131 | ||||
		Reference in New Issue
	
	Block a user