diff --git a/app/Controllers/Admin/Episode.php b/app/Controllers/Admin/Episode.php index 5e25bd00..e10c4060 100644 --- a/app/Controllers/Admin/Episode.php +++ b/app/Controllers/Admin/Episode.php @@ -111,6 +111,7 @@ class Episode extends BaseController 'podcast_id' => $this->podcast->id, 'title' => $this->request->getPost('title'), 'slug' => $this->request->getPost('slug'), + 'guid' => '', 'enclosure' => $this->request->getFile('enclosure'), 'description' => $this->request->getPost('description'), 'image' => $this->request->getFile('image'), diff --git a/app/Entities/Episode.php b/app/Entities/Episode.php index 26f0ee5c..70ab1ed3 100644 --- a/app/Entities/Episode.php +++ b/app/Entities/Episode.php @@ -199,7 +199,7 @@ class Episode extends Entity ); } - public function setGuid($guid = null) + public function setGuid(string $guid) { return $this->attributes['guid'] = empty($guid) ? $this->getLink()