config->getAppValue(self::APP_ID, 'push_enabled', 'yes') === 'yes'; } public function getPushWebhookSecret(): string { return trim($this->config->getAppValue(self::APP_ID, 'push_webhook_secret', '')); } public function verifyPushWebhookSecret(?string $provided): bool { if ($provided === null || $provided === '') { return false; } $own = $this->getPushWebhookSecret(); if ($own !== '' && hash_equals($own, $provided)) { return true; } $f7pushSecret = trim($this->config->getAppValue('f7push', 'api_secret', '')); if ($f7pushSecret !== '' && hash_equals($f7pushSecret, $provided)) { return true; } return false; } }