fix: raise YouTube Shorts max duration to 3 minutes

YouTube Shorts now allow videos up to 3 minutes. The dashboard media rules still capped uploads at 60s (API/MCP already had no duration gate), so align the frontend validation, content-type copy, and unit test.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Paulo Castellano 2026-07-23 12:06:15 -03:00
parent 71df3bf801
commit 8964dda8f2
17 changed files with 17 additions and 17 deletions

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'مقطع قصير',
'description' => 'فيديو عمودي حتى 60 ثانية',
'description' => 'فيديو عمودي حتى 3 دقائق',
],
'x_post' => [
'label' => 'منشور',

View file

@ -502,7 +502,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Vertikales Video bis zu 60 Sekunden',
'description' => 'Vertikales Video bis zu 3 Minuten',
],
'x_post' => [
'label' => 'Beitrag',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Κατακόρυφο βίντεο έως 60 δευτερόλεπτα',
'description' => 'Κατακόρυφο βίντεο έως 3 λεπτά',
],
'x_post' => [
'label' => 'Δημοσίευση',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Vertical video up to 60 seconds',
'description' => 'Vertical video up to 3 minutes',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Video vertical de hasta 60 segundos',
'description' => 'Video vertical de hasta 3 minutos',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Vidéo verticale jusqu\'à 60 secondes',
'description' => 'Vidéo verticale jusqu\'à 3 minutes',
],
'x_post' => [
'label' => 'Publication',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Video verticale fino a 60 secondi',
'description' => 'Video verticale fino a 3 minuti',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'ショート',
'description' => '最大 60 秒の縦型動画',
'description' => '最大 3 分の縦型動画',
],
'x_post' => [
'label' => '投稿',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => '최대 60초 세로 동영상',
'description' => '최대 3분 세로 동영상',
],
'x_post' => [
'label' => '게시물',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Verticale video tot 60 seconden',
'description' => 'Verticale video tot 3 minuten',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Pionowy film do 60 sekund',
'description' => 'Pionowy film do 3 minut',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Vídeo vertical de até 60 segundos',
'description' => 'Vídeo vertical de até 3 minutos',
],
'x_post' => [
'label' => 'Post',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => 'Вертикальное видео до 60 секунд',
'description' => 'Вертикальное видео до 3 минут',
],
'x_post' => [
'label' => 'Пост',

View file

@ -502,7 +502,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => '60 saniyeye kadar dikey video',
'description' => '3 dakikaya kadar dikey video',
],
'x_post' => [
'label' => 'Gönderi',

View file

@ -500,7 +500,7 @@
],
'youtube_short' => [
'label' => 'Short',
'description' => '最长 60 秒的竖版视频',
'description' => '最长 3 分钟的竖版视频',
],
'x_post' => [
'label' => '帖子',

View file

@ -92,7 +92,7 @@ const CONTENT_TYPE_RULES: Record<string, MediaRules> = {
youtube_short: {
maxFiles: 1, acceptImages: false, acceptVideos: true, requiresMedia: true,
acceptsGif: false,
maxVideoBytes: 256 * GB, maxVideoDurationSec: 60,
maxVideoBytes: 256 * GB, maxVideoDurationSec: 3 * 60,
aspectRatioMin: 0.5, aspectRatioMax: 0.6,
},

View file

@ -23,7 +23,7 @@
expect(ContentType::InstagramFeed->description())->toContain('feed');
expect(ContentType::InstagramReel->description())->toContain('90 seconds');
expect(ContentType::InstagramStory->description())->toContain('24 hours');
expect(ContentType::YouTubeShort->description())->toContain('60 seconds');
expect(ContentType::YouTubeShort->description())->toContain('3 minutes');
});
test('content type maps to correct platform', function () {