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
refactor(onboarding): send goals to PostHog exactly like persona
Paulo Castellanof8f6d263ad45
diff --git a/app/Http/Controllers/App/OnboardingController.php b/app/Http/Controllers/App/OnboardingController.phpindex 1acb2c7e0..80475a775 100644--- a/app/Http/Controllers/App/OnboardingController.php+++ b/app/Http/Controllers/App/OnboardingController.php@@ -106,7 +106,9 @@ class OnboardingController extends Controller$user->update(['goals' => $goals]);- $postHog->identify($user->id, $this->goalProperties($goals));+ $postHog->identify($user->id, [+ 'goals' => $goals,+ ]);return redirect()->route('app.onboarding.connect');}@@ -183,22 +185,4 @@ class OnboardingController extends Controllerroute('app.onboarding.connect'),);}-- /**- * PostHog person properties for the selected goals: the full array plus a- * boolean per goal, so campaigns can be cross-tabbed against each intent.- *- * @param array<int, string> $goals- * @return array<string, mixed>- */- private function goalProperties(array $goals): array- {- $properties = ['onboarding_goals' => $goals];-- foreach (Goal::cases() as $goal) {- $properties["goal_{$goal->value}"] = in_array($goal->value, $goals, true);- }-- return $properties;- }}