From 31ddcb53d34ff2f1f8a2747edee72694fabbffa9 Mon Sep 17 00:00:00 2001 From: Guy Van Sanden Date: Thu, 16 Apr 2026 15:05:36 +0200 Subject: [PATCH] Clean up --- lib/Service/Config.php | 49 ------------------------------------------ 1 file changed, 49 deletions(-) delete mode 100644 lib/Service/Config.php diff --git a/lib/Service/Config.php b/lib/Service/Config.php deleted file mode 100644 index e8842c5..0000000 --- a/lib/Service/Config.php +++ /dev/null @@ -1,49 +0,0 @@ -config = $config; - } - - public function getHiddenFields(): array { - $value = $this->config->getAppValue('minimalprofile', 'hidden_fields', ''); - if ($value === '') { - return []; - } - return json_decode($value, true) ?? []; - } - - public function generateCss(array $fields): string { - $selectors = [ - 'pronouns' => '#account-property-pronouns', - 'role' => '#account-property-role', - 'headline' => '#account-property-headline', - 'biography' => '#account-property-biography', - 'organisation' => '#account-property-organisation', - 'phone' => '#account-property-phone', - 'address' => '#account-property-address', - 'birthdate' => '#account-property-birthdate', - 'website' => '#account-property-website', - 'twitter' => '#account-property-twitter', - 'fediverse' => '#account-property-fediverse', - 'location' => '#account-property-location', - ]; - - $css = ''; - foreach ($fields as $field) { - if (isset($selectors[$field])) { - $selector = $selectors[$field]; - $css .= $selector . ' { display: none !important; }' . "\n"; - $css .= '.personal-settings-setting-box:has(' . $selector . ') { display: none !important; }' . "\n"; - } - } - return $css; - } -} \ No newline at end of file