l->t('Push notifications - Fair use policy'); } #[\Override] public function run(): SetupResult { $lastReached = (int)$this->config->getAppValue(Application::APP_ID, 'rate_limit_reached', '0'); if ($lastReached < ($this->timeFactory->getTime() - 7 * 24 * 3600)) { return SetupResult::success(); } return SetupResult::error( $this->l->t('F7cloud GmbH sponsors a free push notification gateway for private users. To ensure good service, the gateway limits the number of push notifications per server and the limit was reached for this server. For enterprise users, a more scalable gateway is available.'), 'https://f7cloud.com/fairusepolicy' ); } }