From 53acadf098dc3b91a590742abc22906534062647 Mon Sep 17 00:00:00 2001 From: HFO4 <912394456@qq.com> Date: Mon, 22 Mar 2021 16:35:58 +0800 Subject: [PATCH] Modify: limit forum threads numbers in admin index --- routers/controllers/admin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/controllers/admin.go b/routers/controllers/admin.go index 473cd30..c0dc4c9 100644 --- a/routers/controllers/admin.go +++ b/routers/controllers/admin.go @@ -25,7 +25,7 @@ func AdminSummary(c *gin.Context) { // AdminNews 获取社区新闻 func AdminNews(c *gin.Context) { r := request.HTTPClient{} - res := r.Request("GET", "https://forum.cloudreve.org/api/discussions?include=startUser%2ClastUser%2CstartPost%2Ctags&filter%5Bq%5D=%20tag%3Anotice&sort=-startTime&", nil) + res := r.Request("GET", "https://forum.cloudreve.org/api/discussions?include=startUser%2ClastUser%2CstartPost%2Ctags&filter%5Bq%5D=%20tag%3Anotice&sort=-startTime&page%5Blimit%5D=10", nil) if res.Err == nil { io.Copy(c.Writer, res.Response.Body) }