From 5a92ad0621450cb6fcc12a6787ad904a463f5051 Mon Sep 17 00:00:00 2001 From: Alan Urmancheev Date: Fri, 29 Nov 2024 16:21:38 +0400 Subject: [PATCH] feat: NextCloud: add the enableImagemagick option --- selfprivacy_api/services/nextcloud/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/selfprivacy_api/services/nextcloud/__init__.py b/selfprivacy_api/services/nextcloud/__init__.py index cd66dfa..866ad03 100644 --- a/selfprivacy_api/services/nextcloud/__init__.py +++ b/selfprivacy_api/services/nextcloud/__init__.py @@ -10,6 +10,7 @@ from selfprivacy_api.services.service import Service, ServiceStatus from selfprivacy_api.services.nextcloud.icon import NEXTCLOUD_ICON from selfprivacy_api.services.config_item import ( StringServiceConfigItem, + BoolServiceConfigItem, ServiceConfigItem, ) from selfprivacy_api.utils.regex_strings import SUBDOMAIN_REGEX @@ -26,6 +27,11 @@ class Nextcloud(Service): regex=SUBDOMAIN_REGEX, widget="subdomain", ), + "enableImagemagick": BoolServiceConfigItem( + id="enableImagemagick", + default_value=True, + description="Enable ImageMagick", + ), } @staticmethod