diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index c64bd0c..910585e 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -17,6 +17,7 @@ class Application extends App implements IBootstrap { public const APP_ID = 'repod'; private const GPODDERSYNC_ID = 'gpoddersync'; + private const GPODDERSYNC_MIN_VERSION = '3.8.1'; public function __construct() { @@ -56,7 +57,8 @@ class Application extends App implements IBootstrap /** @var array $appConfig */ $appConfig = json_decode((string) $settings['array']['oc_appconfig'], true); $appConfig['repod'] = [ - 'gpodder' => $appManager->isEnabledForUser(self::GPODDERSYNC_ID), + 'gpodder' => $appManager->isEnabledForUser(self::GPODDERSYNC_ID) + && version_compare($appManager->getAppVersion(self::GPODDERSYNC_ID), self::GPODDERSYNC_MIN_VERSION) >= 0, ]; $settings['array']['oc_appconfig'] = json_encode($appConfig); }