aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-06-13 15:07:25 +0200
committerChocobozzz <me@florianbigard.com>2018-06-13 15:07:45 +0200
commit749c7247ae9042a74d132afda0c7eefab66a0428 (patch)
tree73ceea2408c5aea13e2c936951e7ece3cf98b9aa /server/models/video/video-channel.ts
parentbcec136ee62ee9fcc0f0177e9dd0ac191a2cf5ee (diff)
downloadPeerTube-749c7247ae9042a74d132afda0c7eefab66a0428.tar.gz
PeerTube-749c7247ae9042a74d132afda0c7eefab66a0428.tar.zst
PeerTube-749c7247ae9042a74d132afda0c7eefab66a0428.zip
Fix bad RSS descriptions when filtering videos by account or channel
Diffstat (limited to 'server/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts6
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}