Skip to content

Commit

Permalink
send the post
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 29, 2024
1 parent 7121c36 commit 5962795
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/Jobs/PostOnBlueskyJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
use NotificationChannels\Bluesky\BlueskyPost;
use NotificationChannels\Bluesky\BlueskyService;

class PostOnBlueskyJob implements ShouldQueue
{
Expand All @@ -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]);
}
Expand Down

0 comments on commit 5962795

Please sign in to comment.