config: remove PeerTube/Mastodon, update defaults and contact email

This commit is contained in:
2026-05-18 17:49:14 +04:00
parent b3eae9ea82
commit 18cf71a7da
3 changed files with 179 additions and 451 deletions
+7 -3
View File
@@ -25,9 +25,13 @@ if (file_exists($config_default_file)) {
setlocale(LC_TIME, 'fr_FR.UTF-8');
date_default_timezone_set(DEFAULT_TIMEZONE);
// Initialisation des catégories de vidéo depuis l'API
$peertube_categories = initCategories();
define('PEERTUBE_CATEGORIES', $peertube_categories);
// Initialisation des catégories PeerTube (seulement si PeerTube est activé)
if (defined('PEERTUBE_ENABLED') && PEERTUBE_ENABLED) {
$peertube_categories = initCategories();
define('PEERTUBE_CATEGORIES', $peertube_categories);
} else {
define('PEERTUBE_CATEGORIES', []);
}
/**
* Initialise et récupère les catégories depuis l'API PeerTube