From 749c7247ae9042a74d132afda0c7eefab66a0428 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 13 Jun 2018 15:07:25 +0200 Subject: Fix bad RSS descriptions when filtering videos by account or channel --- server/models/video/video-channel.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'server/models/video') 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 { const actor = this.Actor.toFormattedJSON() const videoChannel = { id: this.id, - displayName: this.name, + displayName: this.getDisplayName(), description: this.description, support: this.support, isLocal: this.Actor.isOwned(), @@ -266,4 +266,8 @@ export class VideoChannelModel extends Model { ] }) } + + getDisplayName () { + return this.name + } } -- cgit v1.2.3