feat: limit default categories and hashtags to podcast scope
This commit is contained in:
+6
-6
@@ -348,7 +348,7 @@ Valeurs par défaut issues de `includes/config.default.php`.
|
|||||||
| Afficher le nombre de vues sur les cartes vidéo
|
| Afficher le nombre de vues sur les cartes vidéo
|
||||||
|
|
||||||
| `PRIORITY_CATEGORIES`
|
| `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)
|
| Catégories mises en avant : `[ID => 'Nom']`, ordre = ordre d'affichage (accueil, sidebar, footer, menu mobile)
|
||||||
|
|
||||||
| `DEFAULT_TIMEZONE`
|
| `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
|
| Durée max d'un short (s) ; ratio portrait (`aspectRatio ≤ 1`) aussi requis
|
||||||
|
|
||||||
| `IMPORTANT_TAGS`
|
| `IMPORTANT_TAGS`
|
||||||
| `['ANNUKUTECED', 'podcast', …]`
|
| `['ANNUKUTECED']`
|
||||||
| Hashtags de la sidebar, du footer et du menu mobile
|
| Hashtags de la sidebar, du footer et du menu mobile
|
||||||
|
|
||||||
| `POPULAR_TAGS`
|
| `POPULAR_TAGS`
|
||||||
| `['podcast', 'annukuteced', …]`
|
| `['ANNUKUTECED']`
|
||||||
| Hashtags affichés sur l'accueil
|
| Hashtags affichés sur l'accueil
|
||||||
|===
|
|===
|
||||||
|
|
||||||
@@ -1276,7 +1276,7 @@ Default values from `includes/config.default.php`.
|
|||||||
| Show view counts on video cards
|
| Show view counts on video cards
|
||||||
|
|
||||||
| `PRIORITY_CATEGORIES`
|
| `PRIORITY_CATEGORIES`
|
||||||
| `[11, 15, 4, 9, 10]`
|
| `[10, 15]`
|
||||||
| Featured categories: `[ID => 'Name']`, order = display order (homepage, sidebar, footer, mobile menu)
|
| Featured categories: `[ID => 'Name']`, order = display order (homepage, sidebar, footer, mobile menu)
|
||||||
|
|
||||||
| `DEFAULT_TIMEZONE`
|
| `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
|
| Max short duration (s); portrait ratio (`aspectRatio ≤ 1`) also required
|
||||||
|
|
||||||
| `IMPORTANT_TAGS`
|
| `IMPORTANT_TAGS`
|
||||||
| `['ANNUKUTECED', 'podcast', …]`
|
| `['ANNUKUTECED']`
|
||||||
| Hashtags in the sidebar, footer and mobile menu
|
| Hashtags in the sidebar, footer and mobile menu
|
||||||
|
|
||||||
| `POPULAR_TAGS`
|
| `POPULAR_TAGS`
|
||||||
| `['podcast', 'annukuteced', …]`
|
| `['ANNUKUTECED']`
|
||||||
| Hashtags displayed on the homepage
|
| Hashtags displayed on the homepage
|
||||||
|===
|
|===
|
||||||
|
|
||||||
|
|||||||
@@ -38,11 +38,8 @@ if (!defined('SHOW_VIDEO_VIEWS')) define('SHOW_VIDEO_VIEWS', false); // Masquer
|
|||||||
// format: [ID catégorie => Nom personnalisé]
|
// format: [ID catégorie => Nom personnalisé]
|
||||||
if (!defined('PRIORITY_CATEGORIES')) {
|
if (!defined('PRIORITY_CATEGORIES')) {
|
||||||
define('PRIORITY_CATEGORIES', [
|
define('PRIORITY_CATEGORIES', [
|
||||||
11 => 'Actualités & Politique',
|
10 => 'Divertissement',
|
||||||
15 => 'Science et Technologie',
|
15 => 'Science et Technologie'
|
||||||
4 => 'Art',
|
|
||||||
9 => 'Humour',
|
|
||||||
10 => 'Divertissement'
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -175,21 +172,14 @@ if (!defined('TAG_SHORT')) define('TAG_SHORT', 'short');
|
|||||||
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
||||||
if (!defined('IMPORTANT_TAGS')) {
|
if (!defined('IMPORTANT_TAGS')) {
|
||||||
define('IMPORTANT_TAGS', [
|
define('IMPORTANT_TAGS', [
|
||||||
'ANNUKUTECED',
|
'ANNUKUTECED'
|
||||||
'podcast',
|
|
||||||
'fediverse',
|
|
||||||
'audio',
|
|
||||||
'vidéo'
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hashtags populaires à afficher sur la page d'accueil
|
// Hashtags populaires à afficher sur la page d'accueil
|
||||||
if (!defined('POPULAR_TAGS')) {
|
if (!defined('POPULAR_TAGS')) {
|
||||||
define('POPULAR_TAGS', [
|
define('POPULAR_TAGS', [
|
||||||
'podcast',
|
'ANNUKUTECED'
|
||||||
'annukuteced',
|
|
||||||
'fediverse',
|
|
||||||
'audio'
|
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,19 +79,12 @@ define('APP_HOST_NAME', 'example.com');
|
|||||||
|
|
||||||
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
// Hashtags importants à afficher dans la sidebar, footer et menu mobile
|
||||||
define('IMPORTANT_TAGS', [
|
define('IMPORTANT_TAGS', [
|
||||||
'ANNUKUTECED',
|
'ANNUKUTECED'
|
||||||
'podcast',
|
|
||||||
'fediverse',
|
|
||||||
'audio',
|
|
||||||
'vidéo'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Hashtags populaires à afficher sur la page d'accueil
|
// Hashtags populaires à afficher sur la page d'accueil
|
||||||
define('POPULAR_TAGS', [
|
define('POPULAR_TAGS', [
|
||||||
'podcast',
|
'ANNUKUTECED'
|
||||||
'annukuteced',
|
|
||||||
'fediverse',
|
|
||||||
'audio'
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Durée maximale des shorts en secondes
|
// Durée maximale des shorts en secondes
|
||||||
@@ -154,11 +147,8 @@ define('SHORTS_MAX_DURATION', 180); // 3 minutes
|
|||||||
// 17 : Kids
|
// 17 : Kids
|
||||||
// 18 : Food
|
// 18 : Food
|
||||||
define('PRIORITY_CATEGORIES', [
|
define('PRIORITY_CATEGORIES', [
|
||||||
11 => 'Actualités & Politique',
|
10 => 'Divertissement',
|
||||||
15 => 'Science et Technologie',
|
15 => 'Science et Technologie'
|
||||||
4 => 'Art',
|
|
||||||
9 => 'Humour',
|
|
||||||
10 => 'Divertissement'
|
|
||||||
// Ajoutez d'autres catégories selon vos besoins
|
// Ajoutez d'autres catégories selon vos besoins
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user