Commit 133e3086 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

chore: update CI4 to v4.6.4 + php and js packages to latest

parent d438190b
Loading
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -79,6 +79,7 @@ class Database extends Config
        'port'        => 3306,
        'foreignKeys' => true,
        'busyTimeout' => 1000,
        'synchronous' => null,
        'dateFormat'  => [
            'date'     => 'Y-m-d',
            'datetime' => 'Y-m-d H:i:s',
+3 −0
Original line number Diff line number Diff line
@@ -11,6 +11,9 @@ namespace Config;
 * more.
 *
 * All paths are relative to the project's root folder.
 *
 * NOTE: This class is required prior to Autoloader instantiation,
 *       and does not extend BaseConfig.
 */

class Paths
+6 −1
Original line number Diff line number Diff line
@@ -54,11 +54,16 @@ abstract class BaseController extends Controller
        ResponseInterface $response,
        LoggerInterface $logger
    ): void {
        // Load here all helpers you want to be available in your controllers that extend BaseController.
        // Caution: Do not put the this below the parent::initController() call below.
        $this->helpers = [...$this->helpers, 'svg', 'components', 'misc', 'seo', 'premium_podcasts'];

        // Do Not Edit This Line
        // Caution: Do not edit this line.
        parent::initController($request, $response, $logger);

        // Preload any models, libraries, etc, here.
        // $this->session = service('session');

        Theme::setTheme('app');
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class MapController extends BaseController
        if (! ($found = cache($cacheName))) {
            $episodes = (new EpisodeModel())
                ->where('`published_at` <= UTC_TIMESTAMP()', null, false)
                ->where('location_geo is not', null)
                ->where('location_geo is not')
                ->findAll();
            $found = [];
            foreach ($episodes as $episode) {
+0 −5
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ namespace App\Entities;

use App\Models\PodcastModel;
use Modules\Fediverse\Entities\Actor as FediverseActor;
use RuntimeException;

/**
 * @property Podcast|null $podcast
@@ -31,10 +30,6 @@ class Actor extends FediverseActor

    public function getPodcast(): ?Podcast
    {
        if ($this->id === null) {
            throw new RuntimeException('Podcast id must be set before getting associated podcast.');
        }

        if (! $this->podcast instanceof Podcast) {
            $this->podcast = (new PodcastModel())->getPodcastByActorId($this->id);
        }
Loading