Make a separate post markdown field character limit. (#2331)

Context: https://github.com/LemmyNet/lemmy/issues/3262
This commit is contained in:
Dessalines 2024-01-18 19:54:27 -05:00 committed by GitHub
parent 7e0652df45
commit 5ba9da1545
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,7 @@ import {
import {
archiveTodayUrl,
ghostArchiveUrl,
postMarkdownFieldCharacterLimit,
relTags,
trendingFetchLimit,
webArchiveUrl,
@ -477,6 +478,7 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
allLanguages={this.props.allLanguages}
siteLanguages={this.props.siteLanguages}
hideNavigationWarnings
maxLength={postMarkdownFieldCharacterLimit}
/>
</div>
</div>

View file

@ -19,7 +19,8 @@ export const postRefetchSeconds: number = 60 * 1000;
export const trendingFetchLimit = 6;
export const mentionDropdownFetchLimit = 10;
export const commentTreeMaxDepth = 8;
export const markdownFieldCharacterLimit = 50000;
export const postMarkdownFieldCharacterLimit = 50000;
export const markdownFieldCharacterLimit = 10000;
export const maxUploadImages = 20;
export const concurrentImageUpload = 4;
export const updateUnreadCountsInterval = 30000;