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.

feat(seeder): conditionally seed UserSeeder for self-hosted setups

Paulo Castellanobc4438857016
diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php
index b1f2022a0..000d7d0c4 100644
--- a/database/seeders/DatabaseSeeder.php
+++ b/database/seeders/DatabaseSeeder.php
@@ -15,7 +15,12 @@ class DatabaseSeeder extends Seeder
{
$this->call([
PlanSeeder::class,
- PassportSeeder::class,
+ PassportSeeder::class
]);
+
+ // If self-hosted, seed the user seeder
+ if(config('trypost.self_hosted')) {
+ $this->call(UserSeeder::class);
+ }
}
}