nostr events schedule

This commit is contained in:
HolgerHatGarKeineNode
2023-02-24 11:54:19 +01:00
parent c99ebca063
commit d483c0955a
7 changed files with 75 additions and 17 deletions

View File

@@ -17,11 +17,7 @@ class MeetupEventObserver
public function created(MeetupEvent $meetupEvent): void
{
try {
$from = $meetupEvent->meetup->name;
if ($meetupEvent->meetup->nostr) {
$from .= ' @'.$meetupEvent->meetup->nostr;
}
$this->publishOnNostr($meetupEvent, $this->getText('MeetupEvent', $from));
$this->publishOnNostr($meetupEvent, $this->getText('MeetupEvent'));
} catch (Exception $e) {
Log::error($e->getMessage());
}