diff options
Diffstat (limited to 'client/src/app/+videos/+video-watch/video-watch.component.ts')
-rw-r--r-- | client/src/app/+videos/+video-watch/video-watch.component.ts | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/src/app/+videos/+video-watch/video-watch.component.ts b/client/src/app/+videos/+video-watch/video-watch.component.ts index 933e6c51f..4341514cd 100644 --- a/client/src/app/+videos/+video-watch/video-watch.component.ts +++ b/client/src/app/+videos/+video-watch/video-watch.component.ts | |||
@@ -307,6 +307,15 @@ export class VideoWatchComponent implements OnInit, OnDestroy { | |||
307 | ) | 307 | ) |
308 | } | 308 | } |
309 | 309 | ||
310 | isChannelDisplayNameGeneric () { | ||
311 | const genericChannelDisplayName = [ | ||
312 | `Main ${this.video.channel.ownerAccount.name} channel`, | ||
313 | `Default ${this.video.channel.ownerAccount.name} channel` | ||
314 | ] | ||
315 | |||
316 | return genericChannelDisplayName.includes(this.video.channel.displayName) | ||
317 | } | ||
318 | |||
310 | private loadVideo (videoId: string) { | 319 | private loadVideo (videoId: string) { |
311 | // Video did not change | 320 | // Video did not change |
312 | if (this.video && this.video.uuid === videoId) return | 321 | if (this.video && this.video.uuid === videoId) return |