Commit ad8b153f authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: set episode guid upon episode creation

fixes #48
parent 9f003058
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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'),
+1 −1
Original line number Diff line number Diff line
@@ -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()