mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-25 02:09:05 +01:00
feat: customizable max note length
This commit is contained in:
parent
fa2e17dc93
commit
5f62a449a7
@ -93,6 +93,9 @@ id: 'aid'
|
|||||||
# ┌─────────────────────┐
|
# ┌─────────────────────┐
|
||||||
#───┘ Other configuration └─────────────────────────────────────
|
#───┘ Other configuration └─────────────────────────────────────
|
||||||
|
|
||||||
|
# Max note length, should be < 8000.
|
||||||
|
#maxNoteLength: 3000
|
||||||
|
|
||||||
# Whether disable HSTS
|
# Whether disable HSTS
|
||||||
#disableHsts: true
|
#disableHsts: true
|
||||||
|
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
## Work in progress
|
## Work in progress
|
||||||
|
|
||||||
- Weblate project
|
- Weblate project
|
||||||
|
- Customizable max note length
|
||||||
- Link verification
|
- Link verification
|
||||||
- Better Messaging UI
|
- Better Messaging UI
|
||||||
- Better API Documentation
|
- Better API Documentation
|
||||||
|
@ -67,6 +67,7 @@ export type Source = {
|
|||||||
// Managed hosting stuff
|
// Managed hosting stuff
|
||||||
maxUserSignups?: number;
|
maxUserSignups?: number;
|
||||||
isManagedHosting?: boolean;
|
isManagedHosting?: boolean;
|
||||||
|
maxNoteLength?: number;
|
||||||
deepl: {
|
deepl: {
|
||||||
managed?: boolean;
|
managed?: boolean;
|
||||||
authKey?: string;
|
authKey?: string;
|
||||||
|
@ -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 SECOND = 1000;
|
||||||
export const SEC = 1000;
|
export const SEC = 1000;
|
||||||
|
Loading…
Reference in New Issue
Block a user