mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							95e12be30f
						
					
				
				
					commit
					5be1b7df3f
				
			@@ -55,9 +55,6 @@ func Search(ctx *context.APIContext) {
 | 
				
			|||||||
		Type:     models.UserTypeIndividual,
 | 
							Type:     models.UserTypeIndividual,
 | 
				
			||||||
		PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
 | 
							PageSize: com.StrTo(ctx.Query("limit")).MustInt(),
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	if opts.PageSize <= 0 {
 | 
					 | 
				
			||||||
		opts.PageSize = 10
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	users, _, err := models.SearchUsers(opts)
 | 
						users, _, err := models.SearchUsers(opts)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user