From 98757339a3e3d44b938caabf98a16be885567820 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Tue, 20 Sep 2022 12:13:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ForumController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ForumController.php b/app/Http/Controllers/ForumController.php index 4431a06..8766d77 100644 --- a/app/Http/Controllers/ForumController.php +++ b/app/Http/Controllers/ForumController.php @@ -30,7 +30,7 @@ public function get($url) public function announcements() { $resp = $this->cache(function () { - return $this->get('discussions?filter[tag]=announcements&page[offset]=0&sort=-commentCount'); + return $this->get('discussions?filter[tag]=announcements&page[offset]=0&sort=-createdAt'); }); return $this->resp($resp); @@ -39,7 +39,7 @@ public function announcements() public function pinned() { $resp = $this->cache(function () { - return $this->get('discussions?filter[tag]=pinned&page[offset]=0&sort=-commentCount'); + return $this->get('discussions?filter[tag]=pinned&page[offset]=0&sort=-createdAt'); }); return $this->resp($resp);