]>
Commit | Line | Data |
---|---|---|
db7af09b | 1 | import { Component, Input } from '@angular/core' |
b1fa3eba C |
2 | import { User } from '../users' |
3 | import { Video } from './video.model' | |
0883b324 | 4 | import { ServerService } from '@app/core' |
501bc6c2 C |
5 | |
6 | @Component({ | |
7 | selector: 'my-video-miniature', | |
ec8d8440 C |
8 | styleUrls: [ './video-miniature.component.scss' ], |
9 | templateUrl: './video-miniature.component.html' | |
501bc6c2 | 10 | }) |
501bc6c2 | 11 | export class VideoMiniatureComponent { |
df98563e C |
12 | @Input() user: User |
13 | @Input() video: Video | |
501bc6c2 | 14 | |
0883b324 C |
15 | constructor (private serverService: ServerService) { } |
16 | ||
17 | isVideoBlur () { | |
18 | return this.video.isVideoNSFWForUser(this.user, this.serverService.getConfig()) | |
92fb909c | 19 | } |
501bc6c2 | 20 | } |