mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
nostr events schedule
This commit is contained in:
@@ -20,14 +20,11 @@ class LibraryItemObserver
|
||||
try {
|
||||
$libraryItem->setStatus('published');
|
||||
|
||||
$from = $libraryItem->name;
|
||||
$from .= ' von '.$libraryItem->lecturer->name;
|
||||
|
||||
if ($libraryItem->type !== LibraryItemType::MarkdownArticle()) {
|
||||
if ($libraryItem->whereDoesntHave('libraries',
|
||||
fn($query) => $query->where('libraries.is_public', false))
|
||||
->exists()) {
|
||||
$this->publishOnNostr($libraryItem, $this->getText('LibraryItem', $from));
|
||||
$this->publishOnNostr($libraryItem, $this->getText('LibraryItem'));
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
Reference in New Issue
Block a user