mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-14 12:07:46 +02:00
feat: add premium podcasts to manage subscriptions for premium episodes
closes #193
This commit is contained in:
parent
b6114d3d93
commit
3234500e2d
101 changed files with 2572 additions and 110 deletions
|
|
@ -238,6 +238,7 @@ class PodcastController extends BaseController
|
|||
'is_blocked' => $this->request->getPost('block') === 'yes',
|
||||
'is_completed' => $this->request->getPost('complete') === 'yes',
|
||||
'is_locked' => $this->request->getPost('lock') === 'yes',
|
||||
'is_premium_by_default' => $this->request->getPost('premium_by_default') === 'yes',
|
||||
'created_by' => user_id(),
|
||||
'updated_by' => user_id(),
|
||||
'published_at' => null,
|
||||
|
|
@ -351,6 +352,7 @@ class PodcastController extends BaseController
|
|||
$this->podcast->is_completed =
|
||||
$this->request->getPost('complete') === 'yes';
|
||||
$this->podcast->is_locked = $this->request->getPost('lock') === 'yes';
|
||||
$this->podcast->is_premium_by_default = $this->request->getPost('premium_by_default') === 'yes';
|
||||
$this->podcast->updated_by = (int) user_id();
|
||||
|
||||
// republish on websub hubs upon edit
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue