diff --git a/.env.production.sample b/.env.production.sample
index 4d058f0119180d..33fd457282a0d4 100644
--- a/.env.production.sample
+++ b/.env.production.sample
@@ -248,9 +248,12 @@ SMTP_FROM_ADDRESS=notifications@example.com
# Various ways to customize Mastodon's behavior
# ---------------
-# Maximum allowed character count
+# Maximum allowed character count in posts
MAX_TOOT_CHARS=500
+# Maximum allowed character count in alt text
+MAX_ALT_TEXT_CHARS=1500
+
# Maximum number of pinned posts
MAX_PINNED_TOOTS=5
diff --git a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx b/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx
index a5637d31cb6d8f..7f7ffd6ecf8f6b 100644
--- a/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx
+++ b/app/javascript/flavours/glitch/features/ui/components/focal_point_modal.jsx
@@ -22,6 +22,7 @@ import tesseractCorePath from 'tesseract.js-core/tesseract-core.wasm.js';
// eslint-disable-next-line import/extensions
import tesseractWorkerPath from 'tesseract.js/dist/worker.min.js';
import { assetHost } from 'flavours/glitch/utils/config';
+import { maxAltTextChars } from 'flavours/glitch/initial_state';
const messages = defineMessages({
close: { id: 'lightbox.close', defaultMessage: 'Close' },
@@ -361,7 +362,7 @@ class FocalPointModal extends ImmutablePureComponent {
-
+
-
+