mirror of
https://github.com/go-gitea/gitea
synced 2025-07-07 19:17:21 +00:00
Fix #285
This commit is contained in:
@ -163,7 +163,7 @@ func Users(ctx *middleware.Context) {
|
||||
if p < 1 {
|
||||
p = 1
|
||||
}
|
||||
pageNum := 100
|
||||
pageNum := 50
|
||||
count := models.CountUsers()
|
||||
curCount := int64((p-1)*pageNum + pageNum)
|
||||
if curCount > count {
|
||||
@ -192,7 +192,7 @@ func Repositories(ctx *middleware.Context) {
|
||||
if p < 1 {
|
||||
p = 1
|
||||
}
|
||||
pageNum := 2
|
||||
pageNum := 50
|
||||
count := models.CountRepositories()
|
||||
curCount := int64((p-1)*pageNum + pageNum)
|
||||
if curCount > count {
|
||||
|
Reference in New Issue
Block a user