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'))
|
->when($modelName === 'LibraryItem', fn($q) => $q->where('type', '<>', 'markdown_article'))
|
||||||
->orderByDesc('created_at')
|
->orderByDesc('created_at')
|
||||||
->first();
|
->first();
|
||||||
|
if ($model){
|
||||||
$this->publishOnNostr($model, $this->getText($model));
|
$this->publishOnNostr($model, $this->getText($model));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user