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