mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
exclude bindle from nostr
This commit is contained in:
@@ -19,9 +19,9 @@ class LibraryItemObserver
|
|||||||
try {
|
try {
|
||||||
$libraryItem->setStatus('published');
|
$libraryItem->setStatus('published');
|
||||||
|
|
||||||
if (!$libraryItem->news) {
|
|
||||||
if (
|
if (
|
||||||
$libraryItem->type !== 'bindle'
|
!$libraryItem->news
|
||||||
|
&& $libraryItem->type !== 'bindle'
|
||||||
&& $libraryItem
|
&& $libraryItem
|
||||||
->whereDoesntHave('libraries',
|
->whereDoesntHave('libraries',
|
||||||
fn($query) => $query->where('libraries.is_public', false))
|
fn($query) => $query->where('libraries.is_public', false))
|
||||||
@@ -29,7 +29,6 @@ class LibraryItemObserver
|
|||||||
) {
|
) {
|
||||||
$this->publishOnNostr($libraryItem, $this->getText($libraryItem));
|
$this->publishOnNostr($libraryItem, $this->getText($libraryItem));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Log::error($e->getMessage());
|
Log::error($e->getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user