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
Unwrap Pinterest board lists for the web editors.
Paulo Castellanod8e43bcfbb18
diff --git a/app/Actions/Automation/Automation/GetAutomationEditorData.php b/app/Actions/Automation/Automation/GetAutomationEditorData.phpindex 157e4ee13..e633b77b2 100644--- a/app/Actions/Automation/Automation/GetAutomationEditorData.php+++ b/app/Actions/Automation/Automation/GetAutomationEditorData.php@@ -34,7 +34,11 @@ class GetAutomationEditorData->where('platform', Platform::Pinterest)->mapWithKeys(fn ($account) => [$account->id => rescue(- fn () => $this->pinterestPublisher->getBoards($account),+ fn () => data_get(+ $this->pinterestPublisher->getBoards($account),+ 'boards',+ [],+ ),[],report: false,),diff --git a/app/Http/Controllers/App/PostController.php b/app/Http/Controllers/App/PostController.phpindex 7ef6f6332..544d6dcc6 100644--- a/app/Http/Controllers/App/PostController.php+++ b/app/Http/Controllers/App/PostController.php@@ -260,7 +260,11 @@ class PostController extends Controller->where('platform', Platform::Pinterest)->mapWithKeys(fn ($account) => [$account->id => rescue(- fn () => app(PinterestPublisher::class)->getBoards($account),+ fn () => data_get(+ app(PinterestPublisher::class)->getBoards($account),+ 'boards',+ [],+ ),[],report: false,),diff --git a/tests/Feature/Automation/Automation/ReadActionsTest.php b/tests/Feature/Automation/Automation/ReadActionsTest.phpindex dd9675057..24b6e4c28 100644--- a/tests/Feature/Automation/Automation/ReadActionsTest.php+++ b/tests/Feature/Automation/Automation/ReadActionsTest.php@@ -135,7 +135,10 @@ it('returns only active social accounts for the automation workspace', function});it('maps pinterest boards for pinterest accounts', function () {- $this->mock(PinterestPublisher::class, fn ($mock) => $mock->shouldReceive('getBoards')->andReturn([['id' => 'b1']]));+ $this->mock(PinterestPublisher::class, fn ($mock) => $mock->shouldReceive('getBoards')->andReturn([+ 'boards' => [['id' => 'b1']],+ 'truncated' => false,+ ]));$this->mock(TikTokCreatorInfo::class);$workspace = Workspace::factory()->create();