Skip to content

Commit

Permalink
Increase markdown field char limit to 50k. Fixes #849 (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines authored Nov 12, 2022
1 parent 24548cc commit ee0cdde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shared/components/common/markdown-textarea.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { i18n } from "../../i18next";
import { UserService } from "../../services";
import {
isBrowser,
markdownFieldCharacterLimit,
markdownHelpUrl,
mdToHtml,
pictrsDeleteToast,
Expand Down Expand Up @@ -143,7 +144,9 @@ export class MarkdownTextArea extends Component<
required
disabled={this.props.disabled}
rows={2}
maxLength={this.props.maxLength.unwrapOr(10000)}
maxLength={this.props.maxLength.unwrapOr(
markdownFieldCharacterLimit
)}
placeholder={toUndefined(this.props.placeholder)}
/>
{this.state.previewMode &&
Expand Down
1 change: 1 addition & 0 deletions src/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const fetchLimit = 40;
export const trendingFetchLimit = 6;
export const mentionDropdownFetchLimit = 10;
export const commentTreeMaxDepth = 8;
export const markdownFieldCharacterLimit = 50000;

export const relTags = "noopener nofollow";

Expand Down

0 comments on commit ee0cdde

Please sign in to comment.