diff --git a/controllers/FeedController.php b/controllers/FeedController.php index 9de2993..1206ff8 100644 --- a/controllers/FeedController.php +++ b/controllers/FeedController.php @@ -55,7 +55,7 @@ class FeedController extends Controller // --------- AUTHORS $authors = array(); - $authorIds = App::DB()->query('SELECT `author` , COUNT( * ) `cnt` FROM `points` WHERE `moderate`=1 GROUP BY `author` ORDER BY `cnt` DESC LIMIT 0 , 6')->fetchAll(PDO::FETCH_ASSOC); + $authorIds = App::DB()->query('SELECT `author` , COUNT( * ) `cnt` FROM `points` WHERE `status`="published" GROUP BY `author` ORDER BY `cnt` DESC LIMIT 0 , 6')->fetchAll(PDO::FETCH_ASSOC); foreach ($authorIds as $authorId) { $author = User::model()->getByPK($authorId['author']); $author->pointsCount = $authorId['cnt'];