From e87ec032cdda9d5f40c2b63a1f52df1f2853ada0 Mon Sep 17 00:00:00 2001 From: Oleksii Bulenok <63914185+abulenok@users.noreply.github.com> Date: Tue, 18 Aug 2026 11:29:23 +0200 Subject: [PATCH] Truncate gif alt text to 2000 symbols (#11488) --- src/view/com/composer/GifAltText.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/com/composer/GifAltText.tsx b/src/view/com/composer/GifAltText.tsx index 35767a20ab..f7d990a734 100644 --- a/src/view/com/composer/GifAltText.tsx +++ b/src/view/com/composer/GifAltText.tsx @@ -10,6 +10,7 @@ import { type EmbedPlayerParams, parseEmbedPlayerFromUrl, } from '#/lib/strings/embed-player' +import {enforceLen} from '#/lib/strings/helpers' import {useResolveGifQuery} from '#/state/queries/resolve-link' import {AltTextCounterWrapper} from '#/view/com/composer/AltTextCounterWrapper' import {atoms as a, useTheme} from '#/alf' @@ -111,7 +112,7 @@ export function GifAltTextDialogLoaded({ { - onSubmit(altTextDraft) + onSubmit(enforceLen(altTextDraft, MAX_ALT_TEXT, true)) }} nativeOptions={{fullHeight: true}}>