feat: customizable max note length

This commit is contained in:
ThatOneCalculator 2022-12-12 15:07:38 -08:00
parent 08874b97d3
commit 35ebb8bcf2
No known key found for this signature in database
GPG key ID: 8703CACD01000000
4 changed files with 8 additions and 1 deletions

View file

@ -93,6 +93,9 @@ id: 'aid'
# ┌─────────────────────┐
#───┘ Other configuration └─────────────────────────────────────
# Max note length, should be < 8000.
#maxNoteLength: 3000
# Whether disable HSTS
#disableHsts: true

View file

@ -29,6 +29,7 @@
## Work in progress
- Weblate project
- Customizable max note length
- Link verification
- Better Messaging UI
- Better API Documentation

View file

@ -67,6 +67,7 @@ export type Source = {
// Managed hosting stuff
maxUserSignups?: number;
isManagedHosting?: boolean;
maxNoteLength?: number;
deepl: {
managed?: boolean;
authKey?: string;

View file

@ -1,4 +1,6 @@
export const MAX_NOTE_TEXT_LENGTH = 3000;
import config from '@/config/index.js';
export const MAX_NOTE_TEXT_LENGTH = config.maxNoteLength != null ? config.maxNoteLength : 3000;
export const SECOND = 1000;
export const SEC = 1000;