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.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Drop the resolution warning log and fake createRecord via config
Paulo Castellano409c6f013902
diff --git a/app/Services/Social/BlueskyPublisher.php b/app/Services/Social/BlueskyPublisher.phpindex 31eaff478..dda56f9af 100644--- a/app/Services/Social/BlueskyPublisher.php+++ b/app/Services/Social/BlueskyPublisher.php@@ -284,8 +284,6 @@ class BlueskyPublisherconfig('trypost.platforms.bluesky.default_service'),])));- $lastError = null;- $lastEndpoint = null;foreach ($endpoints as $endpoint) {try {$request = $this->socialHttp();@@ -303,11 +301,6 @@ class BlueskyPublisherreturn $did;}} 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.- $lastError = $e->getMessage();- $lastEndpoint = $endpoint;Log::debug('Bluesky handle resolution attempt failed', ['handle' => $handle,'endpoint' => $endpoint,@@ -316,12 +309,6 @@ class BlueskyPublisher}}- Log::warning('Bluesky handle resolution failed; mention will be sent as plain text', [- 'handle' => $handle,- 'endpoint' => $lastEndpoint,- 'error' => $lastError,- ]);-return null;}diff --git a/tests/Feature/Services/Social/BlueskyPublisherTest.php b/tests/Feature/Services/Social/BlueskyPublisherTest.phpindex 6ce6df4a5..0c38df33d 100644--- a/tests/Feature/Services/Social/BlueskyPublisherTest.php+++ b/tests/Feature/Services/Social/BlueskyPublisherTest.php@@ -111,7 +111,7 @@ test('bluesky publisher resolves mentions to DIDs as facets', function () {'*/xrpc/com.atproto.identity.resolveHandle*' => Http::response(['did' => 'did:plc:friend456',], 200),- 'https://bsky.social/xrpc/com.atproto.repo.createRecord' => Http::response([+ config('trypost.platforms.bluesky.default_service').'/xrpc/com.atproto.repo.createRecord' => Http::response(['uri' => 'at://did:plc:testuser123/app.bsky.feed.post/3abc123xyz','cid' => 'bafyreiabc123',], 200),@@ -143,7 +143,7 @@ test('bluesky publisher skips mention facet when handle cannot be resolved', funHttp::fake(['*/xrpc/com.atproto.identity.resolveHandle*' => Http::response(['error' => 'InvalidRequest'], 400),- 'https://bsky.social/xrpc/com.atproto.repo.createRecord' => Http::response([+ config('trypost.platforms.bluesky.default_service').'/xrpc/com.atproto.repo.createRecord' => Http::response(['uri' => 'at://did:plc:testuser123/app.bsky.feed.post/3abc123xyz','cid' => 'bafyreiabc123',], 200),