diff options
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r-- | server/models/video/video-channel.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index b9df14eca..a65a03e38 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts | |||
@@ -237,7 +237,7 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
237 | const actor = this.Actor.toFormattedJSON() | 237 | const actor = this.Actor.toFormattedJSON() |
238 | const videoChannel = { | 238 | const videoChannel = { |
239 | id: this.id, | 239 | id: this.id, |
240 | displayName: this.name, | 240 | displayName: this.getDisplayName(), |
241 | description: this.description, | 241 | description: this.description, |
242 | support: this.support, | 242 | support: this.support, |
243 | isLocal: this.Actor.isOwned(), | 243 | isLocal: this.Actor.isOwned(), |
@@ -266,4 +266,8 @@ export class VideoChannelModel extends Model<VideoChannelModel> { | |||
266 | ] | 266 | ] |
267 | }) | 267 | }) |
268 | } | 268 | } |
269 | |||
270 | getDisplayName () { | ||
271 | return this.name | ||
272 | } | ||
269 | } | 273 | } |