diff options
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/app/shared/video/video-miniature.component.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/video/video-miniature.component.ts b/client/src/app/shared/video/video-miniature.component.ts index 27098f4b4..7e8692b0b 100644 --- a/client/src/app/shared/video/video-miniature.component.ts +++ b/client/src/app/shared/video/video-miniature.component.ts | |||
@@ -16,12 +16,14 @@ export class VideoMiniatureComponent implements OnInit { | |||
16 | @Input() video: Video | 16 | @Input() video: Video |
17 | @Input() ownerDisplayType: OwnerDisplayType = 'account' | 17 | @Input() ownerDisplayType: OwnerDisplayType = 'account' |
18 | 18 | ||
19 | isVideoBlur: boolean | ||
20 | |||
21 | private ownerDisplayTypeChosen: 'account' | 'videoChannel' | 19 | private ownerDisplayTypeChosen: 'account' | 'videoChannel' |
22 | 20 | ||
23 | constructor (private serverService: ServerService) { } | 21 | constructor (private serverService: ServerService) { } |
24 | 22 | ||
23 | get isVideoBlur () { | ||
24 | return this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig()) | ||
25 | } | ||
26 | |||
25 | ngOnInit () { | 27 | ngOnInit () { |
26 | if (this.ownerDisplayType === 'account' || this.ownerDisplayType === 'videoChannel') { | 28 | if (this.ownerDisplayType === 'account' || this.ownerDisplayType === 'videoChannel') { |
27 | this.ownerDisplayTypeChosen = this.ownerDisplayType | 29 | this.ownerDisplayTypeChosen = this.ownerDisplayType |
@@ -38,8 +40,6 @@ export class VideoMiniatureComponent implements OnInit { | |||
38 | } else { | 40 | } else { |
39 | this.ownerDisplayTypeChosen = 'videoChannel' | 41 | this.ownerDisplayTypeChosen = 'videoChannel' |
40 | } | 42 | } |
41 | |||
42 | this.isVideoBlur = this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig()) | ||
43 | } | 43 | } |
44 | 44 | ||
45 | displayOwnerAccount () { | 45 | displayOwnerAccount () { |