From 89c8342916a80f658da57851bc1985f389bfe086 Mon Sep 17 00:00:00 2001 From: Paul Bunkham Date: Tue, 29 Oct 2024 15:26:51 +0000 Subject: [PATCH] Social: Fix the Instagram video max length (#39930) As reported in this forum thread https://wordpress.org/support/topic/length-of-instagram-business-reels/ the validation of Instagram videos is incorrect. It is set to 90, rather than 900, so the max video length is 1.5 minutes rather than 15 minutes. This change updates the value. --- .../publicize-components/changelog/fix-instagram-video-length | 4 ++++ .../src/hooks/use-media-restrictions/restrictions.ts | 2 +- projects/plugins/jetpack/changelog/fix-instagram-video-length | 4 ++++ projects/plugins/social/changelog/fix-instagram-video-length | 4 ++++ 4 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 projects/js-packages/publicize-components/changelog/fix-instagram-video-length create mode 100644 projects/plugins/jetpack/changelog/fix-instagram-video-length create mode 100644 projects/plugins/social/changelog/fix-instagram-video-length diff --git a/projects/js-packages/publicize-components/changelog/fix-instagram-video-length b/projects/js-packages/publicize-components/changelog/fix-instagram-video-length new file mode 100644 index 0000000000000..184b7ae44f3e6 --- /dev/null +++ b/projects/js-packages/publicize-components/changelog/fix-instagram-video-length @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Social: Fixed the Instagram max video length diff --git a/projects/js-packages/publicize-components/src/hooks/use-media-restrictions/restrictions.ts b/projects/js-packages/publicize-components/src/hooks/use-media-restrictions/restrictions.ts index 4fd972fa355b3..685449df9f3c1 100644 --- a/projects/js-packages/publicize-components/src/hooks/use-media-restrictions/restrictions.ts +++ b/projects/js-packages/publicize-components/src/hooks/use-media-restrictions/restrictions.ts @@ -148,7 +148,7 @@ export const RESTRICTIONS = { }, }, video: { - maxLength: 90, + maxLength: 900, minLength: 3, maxSize: 1000, maxWidth: 1920, diff --git a/projects/plugins/jetpack/changelog/fix-instagram-video-length b/projects/plugins/jetpack/changelog/fix-instagram-video-length new file mode 100644 index 0000000000000..66323d7713e49 --- /dev/null +++ b/projects/plugins/jetpack/changelog/fix-instagram-video-length @@ -0,0 +1,4 @@ +Significance: patch +Type: bugfix + +Social: Fixed the Instagram max video length diff --git a/projects/plugins/social/changelog/fix-instagram-video-length b/projects/plugins/social/changelog/fix-instagram-video-length new file mode 100644 index 0000000000000..184b7ae44f3e6 --- /dev/null +++ b/projects/plugins/social/changelog/fix-instagram-video-length @@ -0,0 +1,4 @@ +Significance: patch +Type: fixed + +Social: Fixed the Instagram max video length