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
Redact the Threads token-exchange failure logs
Paulo Castellano3d3150bd2008
diff --git a/app/Http/Controllers/Auth/ThreadsController.php b/app/Http/Controllers/Auth/ThreadsController.phpindex 6b29e568a..059b173e2 100644--- a/app/Http/Controllers/Auth/ThreadsController.php+++ b/app/Http/Controllers/Auth/ThreadsController.php@@ -8,6 +8,7 @@ use App\Enums\SocialAccount\Platform as SocialPlatform;use App\Enums\SocialAccount\Status;use App\Exceptions\SocialAccount\NetworkAlreadyConnectedException;use App\Models\Workspace;+use App\Services\Social\TokenRedactor;use Illuminate\Http\Request;use Illuminate\Support\Facades\Http;use Illuminate\Support\Facades\Log;@@ -90,7 +91,7 @@ class ThreadsController extends SocialControllerif ($tokenResponse->failed()) {Log::error('Threads token exchange failed', ['status' => $tokenResponse->status(),- 'body' => $tokenResponse->body(),+ 'body' => TokenRedactor::redact($tokenResponse->body()),]);throw new \Exception('Failed to exchange token');}@@ -109,7 +110,7 @@ class ThreadsController extends SocialControllerif ($longLivedResponse->failed()) {Log::error('Threads long-lived token exchange failed', ['status' => $longLivedResponse->status(),- 'body' => $longLivedResponse->body(),+ 'body' => TokenRedactor::redact($longLivedResponse->body()),]);throw new \Exception('Failed to exchange long-lived token');}