aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-05 13:54:35 +0200
committerChocobozzz <me@florianbigard.com>2021-08-05 13:54:35 +0200
commit27db78400c558e19bfac0da885fe0b7d0a3e6a0c (patch)
treee50e031f4b0989e438f3c1610c0a16086dd9455f /server/models/video
parent352819ef921e45381b3fbb17072926103b320e73 (diff)
downloadPeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.tar.gz
PeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.tar.zst
PeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.zip
Fix backend channel name validator consistency
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts
index 9f04a57c6..278149d60 100644
--- a/server/models/video/video-channel.ts
+++ b/server/models/video/video-channel.ts
@@ -23,7 +23,7 @@ import { ActivityPubActor } from '../../../shared/models/activitypub'
23import { VideoChannel, VideoChannelSummary } from '../../../shared/models/videos' 23import { VideoChannel, VideoChannelSummary } from '../../../shared/models/videos'
24import { 24import {
25 isVideoChannelDescriptionValid, 25 isVideoChannelDescriptionValid,
26 isVideoChannelNameValid, 26 isVideoChannelDisplayNameValid,
27 isVideoChannelSupportValid 27 isVideoChannelSupportValid
28} from '../../helpers/custom-validators/video-channels' 28} from '../../helpers/custom-validators/video-channels'
29import { CONSTRAINTS_FIELDS, WEBSERVER } from '../../initializers/constants' 29import { CONSTRAINTS_FIELDS, WEBSERVER } from '../../initializers/constants'
@@ -308,7 +308,7 @@ export type SummaryOptions = {
308export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannelModel>>> { 308export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannelModel>>> {
309 309
310 @AllowNull(false) 310 @AllowNull(false)
311 @Is('VideoChannelName', value => throwIfNotValid(value, isVideoChannelNameValid, 'name')) 311 @Is('VideoChannelName', value => throwIfNotValid(value, isVideoChannelDisplayNameValid, 'name'))
312 @Column 312 @Column
313 name: string 313 name: string
314 314