Skip to content

Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.

Resolve Bluesky endpoints from config and import Throwable

Paulo Castellano5cafac34c18d
diff --git a/app/Services/Social/BlueskyPublisher.php b/app/Services/Social/BlueskyPublisher.php
index b3a7943ec..2fb38557f 100644
--- a/app/Services/Social/BlueskyPublisher.php
+++ b/app/Services/Social/BlueskyPublisher.php
@@ -13,6 +13,7 @@ use App\Services\Social\Concerns\HasSocialHttpClient;
use Illuminate\Http\Client\Response;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Facades\Log;
+use Throwable;
class BlueskyPublisher
{
@@ -284,8 +285,8 @@ class BlueskyPublisher
$endpoints = array_values(array_unique(array_filter([
$service,
- 'https://public.api.bsky.app',
- 'https://bsky.social',
+ config('trypost.platforms.bluesky.public_appview'),
+ config('trypost.platforms.bluesky.default_service'),
])));
$lastError = null;
@@ -306,7 +307,7 @@ class BlueskyPublisher
if (is_string($did) && str_starts_with($did, 'did:')) {
return $did;
}
- } catch (\Throwable $e) {
+ } catch (Throwable $e) {
// Per-endpoint failures are expected during transient outages;
// keep them at debug to avoid noisy logs and surface a single
// warning below only when every endpoint has been exhausted.