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
<?php
declare(strict_types=1);
namespace App\Http\Resources\App;
use App\Http\Resources\Api\RepurposeResource as ApiRepurposeResource;
use Illuminate\Http\Request;
class RepurposeResource extends ApiRepurposeResource
{
/**
* The API shape, with the source account in the app's shape so the page can
* render its avatar.
*
* @return array<string, mixed>
*/
public function toArray(Request $request): array
{
return [
...parent::toArray($request),
'source_account' => $this->whenLoaded('sourceAccount', fn () => $this->sourceAccount ? new SocialAccountResource($this->sourceAccount) : null),
];
}
}