SHA256
Добавлен канал личных публикаций
This commit is contained in:
@@ -44,6 +44,7 @@ export function validateChannelDisplayName(value) {
|
||||
}
|
||||
|
||||
const slug = toCanonicalChannelSlug(normalized);
|
||||
if (slug === 'stories') return { ok: false, code: 'reserved_stories', normalized, slug: '' };
|
||||
if (!slug) {
|
||||
return { ok: false, code: 'bad_chars', normalized, slug: '' };
|
||||
}
|
||||
@@ -53,6 +54,8 @@ export function validateChannelDisplayName(value) {
|
||||
|
||||
export function channelNameErrorText(code) {
|
||||
switch (String(code || '').trim()) {
|
||||
case 'reserved_stories':
|
||||
return t('remaining.channels.reserved_stories');
|
||||
case 'blank':
|
||||
return t('remaining.channel_validation.enter_a_channel_name');
|
||||
case 'too_short':
|
||||
|
||||
Reference in New Issue
Block a user