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
feat: PublishToSocialPlatform catches SocialPublishException
Paulo Castellano6886767f9a3d
diff --git a/app/Jobs/PublishToSocialPlatform.php b/app/Jobs/PublishToSocialPlatform.phpindex 7b583d943..4d5f72f7a 100644--- a/app/Jobs/PublishToSocialPlatform.php+++ b/app/Jobs/PublishToSocialPlatform.php@@ -9,6 +9,7 @@ use App\Enums\Notification\Type;use App\Enums\PostPlatform\Status as PostPlatformStatus;use App\Enums\SocialAccount\Platform as SocialPlatform;use App\Events\PostPlatformStatusUpdated;+use App\Exceptions\Social\SocialPublishException;use App\Exceptions\TokenExpiredException;use App\Mail\PostPublished;use App\Mail\PostPublishFailed;@@ -82,6 +83,10 @@ class PublishToSocialPlatform implements ShouldQueue$this->postPlatform->markAsFailed($e->getMessage());$this->postPlatform->socialAccount->markAsDisconnected($e->getMessage());+ } catch (SocialPublishException $e) {+ Log::error('Social publish failed: '.$e->userMessage);++ $this->postPlatform->markAsFailed($e->userMessage);} catch (\Throwable $e) {Log::error('Failed to publish to social platform', ['post_platform_id' => $this->postPlatform->id,