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.

fix: RecoverStuckPosts also recovers platforms stuck in Pending status

Paulo Castellanod19a5c7bcf24
diff --git a/app/Console/Commands/RecoverStuckPosts.php b/app/Console/Commands/RecoverStuckPosts.php
index ed3746ee8..2b4a574b4 100644
--- a/app/Console/Commands/RecoverStuckPosts.php
+++ b/app/Console/Commands/RecoverStuckPosts.php
@@ -26,7 +26,7 @@ class RecoverStuckPosts extends Command
// Mark stuck platforms as failed
$post->postPlatforms()
->where('enabled', true)
- ->where('status', PlatformStatus::Publishing)
+ ->whereIn('status', [PlatformStatus::Publishing, PlatformStatus::Pending])
->where('updated_at', '<=', now()->subHour())
->update([
'status' => PlatformStatus::Failed,