mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
news condition
This commit is contained in:
@@ -20,7 +20,7 @@ class LibraryItemObserver
|
||||
try {
|
||||
$libraryItem->setStatus('published');
|
||||
|
||||
if ($libraryItem->type !== LibraryItemType::MarkdownArticle()) {
|
||||
if (!$libraryItem->news) {
|
||||
if ($libraryItem->whereDoesntHave('libraries',
|
||||
fn($query) => $query->where('libraries.is_public', false))
|
||||
->exists()) {
|
||||
|
||||
Reference in New Issue
Block a user