fix: akismet fails when the extension is not on a version

This commit is contained in:
Daniël Klabbers 2022-11-09 20:42:49 +01:00
parent 1a81c98d43
commit 45d91212f6

View File

@ -38,7 +38,7 @@ class AkismetProvider extends AbstractServiceProvider
$settings->get('flarum-akismet.api_key'),
$url->to('forum')->base(),
$app::VERSION,
$extensions->getExtension('flarum-akismet')->getVersion(),
$extensions->getExtension('flarum-akismet')->getVersion() ?? 'unknown',
$config->inDebugMode()
);
});