Commits (2)
# [1.0.0-alpha.73](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.72...v1.0.0-alpha.73) (2021-09-22)
### Bug Fixes
- **map:** update episode markers query to discard unpublished episodes
([b3caac4](https://code.podlibre.org/podlibre/castopod-host/commit/b3caac45b12a23e4289d00133d2ad7915d084c44))
# [1.0.0-alpha.72](https://code.podlibre.org/podlibre/castopod-host/compare/v1.0.0-alpha.71...v1.0.0-alpha.72) (2021-09-20)
### Bug Fixes
......
......@@ -11,7 +11,7 @@ declare(strict_types=1);
|
| NOTE: this constant is updated upon release with Continuous Integration.
*/
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.72');
defined('CP_VERSION') || define('CP_VERSION', '1.0.0-alpha.73');
/*
| --------------------------------------------------------------------
......
......@@ -10,7 +10,6 @@ declare(strict_types=1);
namespace App\Controllers;
use App\Entities\Page;
use App\Models\EpisodeModel;
use CodeIgniter\HTTP\ResponseInterface;
......@@ -34,7 +33,9 @@ class MapMarkerController extends BaseController
{
$cacheName = 'episodes_markers';
if (! ($found = cache($cacheName))) {
$episodes = (new EpisodeModel())->where('location_geo is not', null)
$episodes = (new EpisodeModel())
->where('`published_at` <= NOW()', null, false)
->where('location_geo is not', null)
->findAll();
$found = [];
foreach ($episodes as $episode) {
......
{
"name": "podlibre/castopod-host",
"version": "1.0.0-alpha72",
"version": "1.0.0-alpha73",
"type": "project",
"description": "Castopod Host is an open-source hosting platform made for podcasters who want engage and interact with their audience.",
"homepage": "https://castopod.org",
......
{
"name": "castopod-host",
"version": "1.0.0-alpha.72",
"version": "1.0.0-alpha.73",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "castopod-host",
"version": "1.0.0-alpha.72",
"version": "1.0.0-alpha.73",
"license": "AGPL-3.0-or-later",
"dependencies": {
"@amcharts/amcharts4": "^4.10.17",
{
"name": "castopod-host",
"version": "1.0.0-alpha.72",
"version": "1.0.0-alpha.73",
"description": "Castopod Host is an open-source hosting platform made for podcasters who want engage and interact with their audience.",
"private": true,
"license": "AGPL-3.0-or-later",
......