From 4114b9e8e3b696fca6030016f1bf06d381182817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sat, 25 Jul 2026 15:19:36 +0400 Subject: [PATCH] feat: limit default categories and hashtags to podcast scope --- README.adoc | 12 ++++++------ includes/config.default.php | 18 ++++-------------- includes/config.local.php.sample | 18 ++++-------------- 3 files changed, 14 insertions(+), 34 deletions(-) diff --git a/README.adoc b/README.adoc index f3086bb..753eef0 100644 --- a/README.adoc +++ b/README.adoc @@ -348,7 +348,7 @@ Valeurs par défaut issues de `includes/config.default.php`. | Afficher le nombre de vues sur les cartes vidéo | `PRIORITY_CATEGORIES` -| `[11, 15, 4, 9, 10]` +| `[10, 15]` | Catégories mises en avant : `[ID => 'Nom']`, ordre = ordre d'affichage (accueil, sidebar, footer, menu mobile) | `DEFAULT_TIMEZONE` @@ -636,11 +636,11 @@ NOTE: Au moins une plateforme (LiberaPay, Ko-fi ou Stripe) doit être configuré | Durée max d'un short (s) ; ratio portrait (`aspectRatio ≤ 1`) aussi requis | `IMPORTANT_TAGS` -| `['ANNUKUTECED', 'podcast', …]` +| `['ANNUKUTECED']` | Hashtags de la sidebar, du footer et du menu mobile | `POPULAR_TAGS` -| `['podcast', 'annukuteced', …]` +| `['ANNUKUTECED']` | Hashtags affichés sur l'accueil |=== @@ -1276,7 +1276,7 @@ Default values from `includes/config.default.php`. | Show view counts on video cards | `PRIORITY_CATEGORIES` -| `[11, 15, 4, 9, 10]` +| `[10, 15]` | Featured categories: `[ID => 'Name']`, order = display order (homepage, sidebar, footer, mobile menu) | `DEFAULT_TIMEZONE` @@ -1564,11 +1564,11 @@ NOTE: At least one platform (LiberaPay, Ko-fi or Stripe) must be configured for | Max short duration (s); portrait ratio (`aspectRatio ≤ 1`) also required | `IMPORTANT_TAGS` -| `['ANNUKUTECED', 'podcast', …]` +| `['ANNUKUTECED']` | Hashtags in the sidebar, footer and mobile menu | `POPULAR_TAGS` -| `['podcast', 'annukuteced', …]` +| `['ANNUKUTECED']` | Hashtags displayed on the homepage |=== diff --git a/includes/config.default.php b/includes/config.default.php index 921bd6a..5a1d171 100644 --- a/includes/config.default.php +++ b/includes/config.default.php @@ -38,11 +38,8 @@ if (!defined('SHOW_VIDEO_VIEWS')) define('SHOW_VIDEO_VIEWS', false); // Masquer // format: [ID catégorie => Nom personnalisé] if (!defined('PRIORITY_CATEGORIES')) { define('PRIORITY_CATEGORIES', [ - 11 => 'Actualités & Politique', - 15 => 'Science et Technologie', - 4 => 'Art', - 9 => 'Humour', - 10 => 'Divertissement' + 10 => 'Divertissement', + 15 => 'Science et Technologie' ]); } @@ -175,21 +172,14 @@ if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short'); // Hashtags importants à afficher dans la sidebar, footer et menu mobile if (!defined('IMPORTANT_TAGS')) { define('IMPORTANT_TAGS', [ - 'ANNUKUTECED', - 'podcast', - 'fediverse', - 'audio', - 'vidéo' + 'ANNUKUTECED' ]); } // Hashtags populaires à afficher sur la page d'accueil if (!defined('POPULAR_TAGS')) { define('POPULAR_TAGS', [ - 'podcast', - 'annukuteced', - 'fediverse', - 'audio' + 'ANNUKUTECED' ]); } diff --git a/includes/config.local.php.sample b/includes/config.local.php.sample index 59dcad4..bf9eaca 100644 --- a/includes/config.local.php.sample +++ b/includes/config.local.php.sample @@ -79,19 +79,12 @@ define('APP_HOST_NAME', 'example.com'); // Hashtags importants à afficher dans la sidebar, footer et menu mobile define('IMPORTANT_TAGS', [ - 'ANNUKUTECED', - 'podcast', - 'fediverse', - 'audio', - 'vidéo' + 'ANNUKUTECED' ]); // Hashtags populaires à afficher sur la page d'accueil define('POPULAR_TAGS', [ - 'podcast', - 'annukuteced', - 'fediverse', - 'audio' + 'ANNUKUTECED' ]); // Durée maximale des shorts en secondes @@ -154,11 +147,8 @@ define('SHORTS_MAX_DURATION', 180); // 3 minutes // 17 : Kids // 18 : Food define('PRIORITY_CATEGORIES', [ - 11 => 'Actualités & Politique', - 15 => 'Science et Technologie', - 4 => 'Art', - 9 => 'Humour', - 10 => 'Divertissement' + 10 => 'Divertissement', + 15 => 'Science et Technologie' // Ajoutez d'autres catégories selon vos besoins ]);