exclude bindle from nostr

This commit is contained in:
HolgerHatGarKeineNode
2023-08-11 15:05:49 +02:00
parent 1c129447db
commit 8070745731

View File

@@ -19,9 +19,9 @@ class LibraryItemObserver
try {
$libraryItem->setStatus('published');
if (!$libraryItem->news) {
if (
$libraryItem->type !== 'bindle'
!$libraryItem->news
&& $libraryItem->type !== 'bindle'
&& $libraryItem
->whereDoesntHave('libraries',
fn($query) => $query->where('libraries.is_public', false))
@@ -29,7 +29,6 @@ class LibraryItemObserver
) {
$this->publishOnNostr($libraryItem, $this->getText($libraryItem));
}
}
} catch (Exception $e) {
Log::error($e->getMessage());
}