From 189308c7ae23d839e8fed3ed15afa5f76be3f2fa Mon Sep 17 00:00:00 2001 From: automated-signal <37887102+automated-signal@users.noreply.github.com> Date: Fri, 24 Jul 2026 10:06:40 -0500 Subject: [PATCH] Round down video duration for story check Co-authored-by: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> --- ts/util/isVideoGoodForStories.std.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/util/isVideoGoodForStories.std.ts b/ts/util/isVideoGoodForStories.std.ts index 76078aa6da..6233545c5f 100644 --- a/ts/util/isVideoGoodForStories.std.ts +++ b/ts/util/isVideoGoodForStories.std.ts @@ -9,7 +9,7 @@ import { } from '../types/AttachmentSize.std.ts'; import { explodePromise } from './explodePromise.std.ts'; -const MAX_VIDEO_DURATION_IN_SEC = 30; +const MAX_VIDEO_DURATION_IN_SEC = 30.999; type MP4ArrayBuffer = ArrayBuffer & { fileStart: number };