mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
if model
This commit is contained in:
@@ -37,6 +37,8 @@ class PublishUnpublishedItems extends Command
|
||||
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
|
||||
->orderByDesc('created_at')
|
||||
->first();
|
||||
$this->publishOnNostr($model, $this->getText($model));
|
||||
if ($model){
|
||||
$this->publishOnNostr($model, $this->getText($model));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user