Skip to content
Snippets Groups Projects
Commit ad8b153f authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: set episode guid upon episode creation

fixes #48
parent 9f003058
No related branches found
No related tags found
No related merge requests found
......@@ -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'),
......
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment