diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-05 13:54:35 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-05 13:54:35 +0200 |
commit | 27db78400c558e19bfac0da885fe0b7d0a3e6a0c (patch) | |
tree | e50e031f4b0989e438f3c1610c0a16086dd9455f /server/models | |
parent | 352819ef921e45381b3fbb17072926103b320e73 (diff) | |
download | PeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.tar.gz PeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.tar.zst PeerTube-27db78400c558e19bfac0da885fe0b7d0a3e6a0c.zip |
Fix backend channel name validator consistency
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video-channel.ts | 4 |
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' | |||
23 | import { VideoChannel, VideoChannelSummary } from '../../../shared/models/videos' | 23 | import { VideoChannel, VideoChannelSummary } from '../../../shared/models/videos' |
24 | import { | 24 | import { |
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' |
29 | import { CONSTRAINTS_FIELDS, WEBSERVER } from '../../initializers/constants' | 29 | import { CONSTRAINTS_FIELDS, WEBSERVER } from '../../initializers/constants' |
@@ -308,7 +308,7 @@ export type SummaryOptions = { | |||
308 | export class VideoChannelModel extends Model<Partial<AttributesOnly<VideoChannelModel>>> { | 308 | export 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 | ||