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:
@@ -17,7 +17,7 @@ class BitcoinEventObserver
|
||||
public function created(BitcoinEvent $bitcoinEvent): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($bitcoinEvent, $this->getText('BitcoinEvent'));
|
||||
$this->publishOnNostr($bitcoinEvent, $this->getText($bitcoinEvent));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class CourseEventObserver
|
||||
public function created(CourseEvent $courseEvent): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($courseEvent, $this->getText('CourseEvent'));
|
||||
$this->publishOnNostr($courseEvent, $this->getText($courseEvent));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class CourseObserver
|
||||
public function created(Course $course): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($course, $this->getText('Course'));
|
||||
$this->publishOnNostr($course, $this->getText($course));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ class LibraryItemObserver
|
||||
if ($libraryItem->whereDoesntHave('libraries',
|
||||
fn($query) => $query->where('libraries.is_public', false))
|
||||
->exists()) {
|
||||
$this->publishOnNostr($libraryItem, $this->getText('LibraryItem'));
|
||||
$this->publishOnNostr($libraryItem, $this->getText($libraryItem));
|
||||
}
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
|
||||
@@ -17,7 +17,7 @@ class MeetupEventObserver
|
||||
public function created(MeetupEvent $meetupEvent): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($meetupEvent, $this->getText('MeetupEvent'));
|
||||
$this->publishOnNostr($meetupEvent, $this->getText($meetupEvent));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class MeetupObserver
|
||||
public function created(Meetup $meetup): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($meetup, $this->getText('Meetup'));
|
||||
$this->publishOnNostr($meetup, $this->getText($meetup));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ class OrangePillObserver
|
||||
public function created(OrangePill $orangePill): void
|
||||
{
|
||||
try {
|
||||
$this->publishOnNostr($orangePill, $this->getText('OrangePill'));
|
||||
$this->publishOnNostr($orangePill, $this->getText($orangePill));
|
||||
} catch (Exception $e) {
|
||||
Log::error($e->getMessage());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user