Lowered 'Channel Description' limit from 5000 to 3000 chars. #5573

Merged
infinite-persistence merged 1 commit from ip-chan-description-limit into master 2021-02-24 17:11:07 +01:00
2 changed files with 3 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import classnames from 'classnames';
import { FormField } from 'component/common/form';
import Button from 'component/button';
import TagsSearch from 'component/tagsSearch';
import { FF_MAX_CHARS_IN_DESCRIPTION } from 'constants/form-field';
import { FF_MAX_CHARS_IN_DESCRIPTION_CHANNEL } from 'constants/form-field';
import ErrorText from 'component/common/error-text';
import ChannelThumbnail from 'component/channelThumbnail';
import { isNameValid, parseURI } from 'lbry-redux';
@ -317,7 +317,7 @@ function ChannelForm(props: Props) {
placeholder={__('Description of your content')}
value={params.description}
onChange={text => setParams({ ...params, description: text })}
textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION}
textAreaMaxLength={FF_MAX_CHARS_IN_DESCRIPTION_CHANNEL}
/>
</>
}

View file

@ -1,4 +1,5 @@
export const FF_MAX_CHARS_DEFAULT = 2000;
export const FF_MAX_CHARS_IN_COMMENT = 2000;
export const FF_MAX_CHARS_IN_DESCRIPTION = 5000;
export const FF_MAX_CHARS_IN_DESCRIPTION_CHANNEL = 3000;
export const FF_MAX_CHARS_IN_POST = 10000;