From df43c67836e926c43c2d1469531f86ac8c2801a6 Mon Sep 17 00:00:00 2001 From: Mischa Spelt Date: Fri, 22 Sep 2017 23:00:45 +0200 Subject: [PATCH] Checking news_target_content.published as well --- api/app/Http/Controllers/NewsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/Http/Controllers/NewsController.php b/api/app/Http/Controllers/NewsController.php index 897eafe..30a7911 100644 --- a/api/app/Http/Controllers/NewsController.php +++ b/api/app/Http/Controllers/NewsController.php @@ -19,7 +19,7 @@ SELECT `news`.`id`, `content`.`title`, `content`.`content`, `news`.`podcast` AS LEFT JOIN `news_regions` AS `regions` ON `regions`.`id` = `news`.`region` LEFT JOIN `news_sources` AS `sources` ON `sources`.`id` = `news`.`source` LEFT JOIN `news_themes` AS `themes` ON `themes`.`id` = `news`.`theme` - WHERE `news`.`category` = :category AND `content`.`target` = 1 AND `news`.`active` = 1 AND `content`.`active` = 1 + WHERE `news`.`category` = :category AND `content`.`target` = 1 AND `news`.`active` = 1 AND `content`.`active` = 1 AND `content`.`published` = 1 QUERY; private static $LOAD_IMAGES =