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.

refactor(middleware): use Account::isOnTrial() instead of onGenericTrial()

Paulo Castellano5c03f9cd11fe
diff --git a/app/Http/Middleware/App/EnsureAccountReady.php b/app/Http/Middleware/App/EnsureAccountReady.php
index f1dce5fff..4123ee71d 100644
--- a/app/Http/Middleware/App/EnsureAccountReady.php
+++ b/app/Http/Middleware/App/EnsureAccountReady.php
@@ -27,7 +27,7 @@ class EnsureAccountReady
if (! config('trypost.self_hosted')) {
$hasAccess = $account && (
$account->subscribed(Account::SUBSCRIPTION_NAME)
- || $account->onGenericTrial()
+ || $account->isOnTrial()
);
if (! $hasAccess) {