diff --git a/app/Console/Commands/DiscourseCreateThread.php b/app/Console/Commands/DiscourseCreateThread.php new file mode 100644 index 000000000..f99251ef8 --- /dev/null +++ b/app/Console/Commands/DiscourseCreateThread.php @@ -0,0 +1,53 @@ +argument('partyid'); + + $party = Party::findOrFail($id); + $event = new ApproveEvent($party); + (new CreateDiscourseThreadForEvent())->handle($event); + } +} diff --git a/app/Listeners/CreateDiscourseThreadForEvent.php b/app/Listeners/CreateDiscourseThreadForEvent.php index 8c4a36f7f..6ca1205cc 100644 --- a/app/Listeners/CreateDiscourseThreadForEvent.php +++ b/app/Listeners/CreateDiscourseThreadForEvent.php @@ -76,7 +76,7 @@ public function handle(ApproveEvent $event) $params = [ 'raw' => $intro, 'title' => $theParty->venue.' '.$theParty->event_date_local, - 'target_usernames' => $host->username, + 'target_recipients' => $host->username, 'archetype' => 'private_message', ];