mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
lnbits paid articles added
This commit is contained in:
@@ -24,9 +24,12 @@ class NewsArticleForm extends Component
|
||||
public array $temporaryUrls = [];
|
||||
|
||||
public ?string $fromUrl = '';
|
||||
|
||||
public string $type = '';
|
||||
|
||||
public bool $paid = false;
|
||||
|
||||
protected $queryString = ['fromUrl' => ['except' => ''], 'paid' => ['except' => false]];
|
||||
protected $queryString = ['fromUrl' => ['except' => ''], 'type' => ['except' => '']];
|
||||
|
||||
public function rules()
|
||||
{
|
||||
@@ -50,6 +53,9 @@ class NewsArticleForm extends Component
|
||||
|
||||
public function mount()
|
||||
{
|
||||
if ($this->type === 'paid') {
|
||||
$this->paid = true;
|
||||
}
|
||||
if ($this->libraryItem === null) {
|
||||
$this->libraryItem = new LibraryItem([
|
||||
'type' => 'markdown_article',
|
||||
|
||||
Reference in New Issue
Block a user