From 59627957054d2b372b67eda4866e072f7815c20c Mon Sep 17 00:00:00 2001 From: Freek Van der Herten Date: Fri, 29 Nov 2024 09:56:01 +0100 Subject: [PATCH] send the post --- app/Jobs/PostOnBlueskyJob.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Jobs/PostOnBlueskyJob.php b/app/Jobs/PostOnBlueskyJob.php index dd13dfa8..46644e05 100644 --- a/app/Jobs/PostOnBlueskyJob.php +++ b/app/Jobs/PostOnBlueskyJob.php @@ -9,6 +9,7 @@ use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; use NotificationChannels\Bluesky\BlueskyPost; +use NotificationChannels\Bluesky\BlueskyService; class PostOnBlueskyJob implements ShouldQueue { @@ -35,9 +36,7 @@ public function handle(): void return; } - BlueskyPost::make() - ->text($this->post->toBlueskyText()) - ->language(['en-US']); + app(BlueskyService::class)->createPost($this->post->toBlueskyText()); $this->post->update(['posted_on_bluesky' => true]); }